mirror of
https://github.com/csd4ni3l/shatterstack.git
synced 2026-01-01 04:23:48 +01:00
fix windows zip not working and only archive whats inside run.dist
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -39,9 +39,14 @@ jobs:
|
|||||||
output-file: ShatterStack
|
output-file: ShatterStack
|
||||||
|
|
||||||
- name: Zip Build Output
|
- name: Zip Build Output
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
|
powershell -Command "Compress-Archive -Path build\run.dist\* -DestinationPath zip_output\ShatterStack-${{ runner.os }}.zip"
|
||||||
|
else
|
||||||
mkdir -p zip_output
|
mkdir -p zip_output
|
||||||
zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist
|
zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist/*
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload Zipped Build Artifact
|
- name: Upload Zipped Build Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user