Skip to content

Commit

Permalink
hopefully fix github actions on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Mar 22, 2022
1 parent 931b20b commit 019e849
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/GenerateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ jobs:
fail-fast: true

steps:
# Configure the environment
- name: Configure Environment
if: ${{ env.BINARY_NAME == '' }}
run: echo "BINARY_NAME=$PROJECT_NAME" >> $GITHUB_ENV

# Check out the repository
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -101,14 +96,14 @@ jobs:
if: ${{ runner.os == 'Windows' }}
run: |
cd "${{github.workspace}}/build/${{env.PROJECT_NAME}}"
Compress-Archive "$BINARY_NAME.exe" "${{env.PROJECT_NAME}}-$(.\${{env.PROJECT_NAME}} -vq)-Windows.zip"
Compress-Archive "${{env.BINARY_NAME || env.PROJECT_NAME}}.exe" "${{env.PROJECT_NAME}}-$(.\${{env.PROJECT_NAME}} -vq)-Windows.zip"
shell: powershell
# Linux / macOS
- name: Create Archive (Linux/macOS)
if: ${{ runner.os != 'Windows' }}
run: |
cd "${{github.workspace}}/build/${{env.PROJECT_NAME}}"
zip -T9 "${{env.PROJECT_NAME}}-$(./${{env.PROJECT_NAME}} -vq)-${{runner.os}}.zip" "${{env.BINARY_NAME}}"
zip -T9 "${{env.PROJECT_NAME}}-$(./${{env.PROJECT_NAME}} -vq)-${{runner.os}}.zip" "${{env.BINARY_NAME || env.PROJECT_NAME}}"
shell: bash

# Upload Artifact
Expand Down

0 comments on commit 019e849

Please sign in to comment.