Skip to content

Commit

Permalink
ci(release): 更新工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
junlongzzz committed Nov 11, 2024
1 parent 8d5b0fd commit d4b0ccb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
mkdir -p bin
go version
go build -ldflags="${{ env.LDFLAGS }}" -trimpath -o bin/gohomo.exe .
zip -r bin/gohomo-${{ matrix.goos }}-${{ matrix.goarch }}-${{ env.COMMIT_SHA_SHORT }}.zip bin/*
cd bin
zip -r gohomo-${{ matrix.goos }}-${{ matrix.goarch }}-${{ env.COMMIT_SHA_SHORT }}.zip *
cd ..
echo "${{ env.COMMIT_SHA_SHORT }}" > bin/version.txt
- name: Upload release assets
Expand All @@ -54,4 +56,6 @@ jobs:
files: |
bin/*.zip
bin/version.txt
draft: false
prerelease: false
make_latest: true

0 comments on commit d4b0ccb

Please sign in to comment.