From d8da53ac33c5603d36b631c5a159ebda2b3869e0 Mon Sep 17 00:00:00 2001 From: Markus Heck Date: Sat, 14 Dec 2024 02:46:52 +0100 Subject: [PATCH] remove .tgz archive, exclude some additional files from release zips --- .github/workflows/release.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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: |