Skip to content

Commit cd99269

Browse files
committed
fix: update GitHub Actions config for Linux release
1 parent 7226277 commit cd99269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linux-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Build Backend
3131
run: |
3232
go mod download
33-
go build -ldflags "-s -w -X 'gin-template/common.Version=$(git describe --tags)'" -o gin-template
33+
go build -ldflags "-s -w -X 'gin-template/common.Version=$(git describe --tags)' -extldflags '-static'" -o gin-template
3434
- name: Release
3535
uses: softprops/action-gh-release@v1
3636
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)