File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ jobs:
34
34
run : |
35
35
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o hltt_${{ matrix.goos }}_${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} ./...
36
36
mkdir -p artifacts
37
- cp hltt_${{ matrix.goos }}_${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} artifacts/
37
+ zip -j artifacts/ hltt_${{ matrix.goos }}_${{ matrix.goarch }}.zip hltt_ ${{ matrix.goos }}_${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
38
38
- name : Upload Artifact
39
39
uses : actions/upload-artifact@v3
40
40
with :
41
41
name : hltt_${{ matrix.goos }}_${{ matrix.goarch }}
42
- path : artifacts/hltt_${{ matrix.goos }}_${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
42
+ path : artifacts/hltt_${{ matrix.goos }}_${{ matrix.goarch }}.zip
43
43
44
44
prepare-and-release :
45
45
needs : build-and-upload-artifacts
@@ -72,18 +72,11 @@ jobs:
72
72
draft : false
73
73
prerelease : false
74
74
75
- - name : check something
76
- run : |
77
- ls -l
78
- ls -l artifacts
79
- zip -r artifacts.zip artifacts
80
- ls -l
81
-
82
75
- name : Upload Artifacts to Release
83
76
uses : softprops/action-gh-release@v1
84
77
with :
85
78
files : |
86
- artifacts/**/hltt_*
79
+ artifacts/**/hltt_*.zip
87
80
fail_on_unmatched_files : true
88
81
tag_name : ${{ steps.generate_tag.outputs.tag }}
89
82
env :
You can’t perform that action at this time.
0 commit comments