Skip to content

Commit 3d9c244

Browse files
committed
fix windows artifacts build
1 parent f7361f0 commit 3d9c244

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/windows-build.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
types: [ published ]
1010

1111
env:
12-
artifacts: >
12+
artifacts: |
1313
me7sum.exe
1414
ME7Check.exe
1515
README.md
@@ -35,8 +35,13 @@ jobs:
3535
path: ${{ env.artifacts }}
3636
- name: Upload windows artifact to release
3737
if: github.event_name == 'release' && github.event.action == 'published'
38+
shell: pwsh
3839
run: |
39-
7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${{ env.artifacts }}
40+
# convert newline separated string to array
41+
echo $env:artifacts
42+
$env:artifacts > artifacts.txt
43+
7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${env:artifacts}
44+
cmd --% /c 7z a -tzip me7sum-${{ github.ref_name }}-win.zip @artifacts.txt
4045
gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip
4146
env:
4247
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)