Skip to content

Commit 98aaba6

Browse files
committed
ci: Wrap binary inside zip-archive in order to prevent download issues due to virus detection
1 parent 65184b5 commit 98aaba6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
run: |
3535
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o hltt_${{ matrix.goos }}_${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} ./...
3636
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' || '' }}
3838
- name: Upload Artifact
3939
uses: actions/upload-artifact@v3
4040
with:
4141
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
4343

4444
prepare-and-release:
4545
needs: build-and-upload-artifacts
@@ -72,18 +72,11 @@ jobs:
7272
draft: false
7373
prerelease: false
7474

75-
- name: check something
76-
run: |
77-
ls -l
78-
ls -l artifacts
79-
zip -r artifacts.zip artifacts
80-
ls -l
81-
8275
- name: Upload Artifacts to Release
8376
uses: softprops/action-gh-release@v1
8477
with:
8578
files: |
86-
artifacts/**/hltt_*
79+
artifacts/**/hltt_*.zip
8780
fail_on_unmatched_files: true
8881
tag_name: ${{ steps.generate_tag.outputs.tag }}
8982
env:

0 commit comments

Comments
 (0)