mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +08:00
feat: goreleaser proper handle ldflags
This commit is contained in:
1
.github/workflows/goreleaser.yml
vendored
1
.github/workflows/goreleaser.yml
vendored
@@ -46,5 +46,6 @@ jobs:
|
||||
args: release --clean --skip=validate
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
|
||||
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
|
||||
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
|
||||
@@ -24,6 +24,8 @@ builds:
|
||||
- darwin
|
||||
- freebsd
|
||||
main: ./cmd/polaris
|
||||
ldflags:
|
||||
- -X polaris/db.Version=$(git describe --tags --long) -X polaris/db.DefaultTmdbApiKey=$(echo $TMDB_API_KEY)
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
Reference in New Issue
Block a user