Browse Source

fix: update GitHub Actions config for Linux release

JustSong 2 years ago
parent
commit
1aaa8b64b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/linux-release.yml

+ 1 - 1
.github/workflows/linux-release.yml

@@ -30,7 +30,7 @@ jobs:
       - name: Build Backend
         run: |
           go mod download
-          go build -ldflags "-s -w -X 'message-pusher/common.Version=$(git describe --tags)'" -o message-pusher
+          go build -ldflags "-s -w -X 'message-pusher/common.Version=$(git describe --tags)' -extldflags '-static'" -o message-pusher
       - name: Release
         uses: softprops/action-gh-release@v1
         if: startsWith(github.ref, 'refs/tags/')