Skip to content

Commit

Permalink
fix(artifacts workflow): fixed regression on how to zip on win runner
Browse files Browse the repository at this point in the history
  • Loading branch information
MRColorR committed Sep 19, 2024
1 parent 15c7e64 commit 48c4ad0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@ jobs:
--contents-directory "." \
-y
- name: Archive build artifacts for release
- name: Archive build artifacts for release (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Compress-Archive -Path "dist\Money4Band\*" -DestinationPath "Money4Band-${{ matrix.os }}-${{ matrix.architecture }}-${{ github.ref_name }}.zip"
- name: Archive build artifacts for release (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
zip -r "Money4Band-${{ matrix.os }}-${{ matrix.architecture }}-${{ github.ref_name }}.zip" dist/Money4Band
else
tar -czvf "Money4Band-${{ matrix.os }}-${{ matrix.architecture }}-${{ github.ref_name }}.tar.gz" dist/Money4Band
fi
tar -czvf "Money4Band-${{ matrix.os }}-${{ matrix.architecture }}-${{ github.ref_name }}.tar.gz" dist/Money4Band
- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 48c4ad0

Please sign in to comment.