diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3989189..6719826 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,17 +33,15 @@ jobs: - name: remove files not needed for release run: | - rm -rf .github tests vendor .gitignore composer.json composer.lock phpunit.xml dev_utils + rm -rf .github tests vendor .gitignore composer.json composer.lock phpunit.xml dev_utils phpunit.xml infection.json5 - name: Create release archives run: | - tar --exclude='.git' -czf /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.tgz * zip -x .git -r /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip * - name: Calculate MD5 hash run: | cd /tmp - md5sum /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.tgz > /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.tgz.md5 md5sum /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip > /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip.md5 - name: Upload release archive (ZIP) @@ -52,24 +50,12 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip tag: ${{ github.ref_name }} - - name: Upload release archive (TGZ) - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.tgz - tag: ${{ github.ref_name }} - name: Upload MD5 hash files (ZIP) uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip.md5 tag: ${{ github.ref_name }} - - name: Upload MD5 hash files (TGZ) - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.tgz.md5 - tag: ${{ github.ref_name }} - name: Upload to package registry run: |