Commit 40183b8 1 parent f7361f0 commit 40183b8 Copy full SHA for 40183b8
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 9
9
types : [ published ]
10
10
11
11
env :
12
- artifacts : >
12
+ artifacts : |
13
13
me7sum.exe
14
14
ME7Check.exe
15
15
README.md
35
35
path : ${{ env.artifacts }}
36
36
- name : Upload windows artifact to release
37
37
if : github.event_name == 'release' && github.event.action == 'published'
38
+ shell : pwsh
38
39
run : |
39
- 7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${{ env.artifacts }}
40
+ dir
41
+ # convert newline separated string to array
42
+ $ARTIFACTS = ("${{ env.artifacts }}" -split '[\r\n]+') -join ' '
43
+ echo $ARTIFACTS
44
+ 7z a -tzip me7sum-${{ github.ref_name }}-win.zip $ARTIFACTS
40
45
gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip
41
46
env :
42
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments