Skip to content

Commit

Permalink
ci: added windows compatible zipping system
Browse files Browse the repository at this point in the history
  • Loading branch information
Elagoht committed May 25, 2024
1 parent 2ebb8f1 commit 290e40a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,18 @@ jobs:
- name: Publish
run: dotnet publish --configuration Release --runtime ${{ matrix.rid }} --self-contained --output ./publish

- name: Zip published files
- name: Zip published files (Linux and macOS)
if: runner.os != 'Windows'
run: |
cd publish
zip -r ../${{ matrix.os }}-${{ matrix.architecture }}-artifact.zip .
shell: bash

- name: Zip published files (Windows)
if: runner.os == 'Windows'
run: |
powershell Compress-Archive -Path publish\* -DestinationPath ${{ matrix.os }}-${{ matrix.architecture }}-artifact.zip
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 290e40a

Please sign in to comment.