Skip to content

Commit

Permalink
Separate zipping.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Jun 28, 2023
1 parent 1666157 commit 0347e33
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ jobs:
cd build
ninja
- name: Create Zip File
- name: Create Zip File (Windows)
run: |
cd build
if [[ "${{ runner.os }}" == "Windows" ]]; then
powershell Compress-Archive -Path bin/* -DestinationPath bin.zip
else
zip -r bin.zip bin/
fi
powershell Compress-Archive -Path bin/* -DestinationPath bin.zip
if: runner.os == 'Windows'

- name: Create Zip File (Linux and macOS)
run: |
cd build
zip -r bin.zip bin/
if: runner.os != 'Windows'

- name: Upload Artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 0347e33

Please sign in to comment.