Skip to content

Commit

Permalink
build_and_release.yml: add executables to zip file before uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipnah committed Aug 13, 2024
1 parent 605ce3e commit cb6ca71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
- name: Build
run: env GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go build -o ./bin/${{matrix.os}}/${{matrix.arch}}/ego main.go

- name: Zip release
run: 7z a -tzip "${git describe --tags --abbrev=0}.zip" "./bin/*"

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: "./bin/*"
files: "${git describe --tags --abbrev=0}.zip"

0 comments on commit cb6ca71

Please sign in to comment.