Skip to content

Commit

Permalink
fix windows artifacts build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyetwurk committed Oct 30, 2024
1 parent f7361f0 commit b733d7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [ published ]

env:
artifacts: >
artifacts: |
me7sum.exe
ME7Check.exe
README.md
Expand All @@ -35,8 +35,13 @@ jobs:
path: ${{ env.artifacts }}
- name: Upload windows artifact to release
if: github.event_name == 'release' && github.event.action == 'published'
shell: pwsh
run: |
7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${{ env.artifacts }}
# convert newline separated string to array
$artifacts = "${{ env.artifacts }}"
$ARTIFACTS = $artifacts -split "`r?`n"
echo "@ARTIFACTS"
7z a -tzip me7sum-${{ github.ref_name }}-win.zip @ARTIFACTS
gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b733d7a

Please sign in to comment.