打印版本号

This commit is contained in:
johlanse 2022-08-05 17:41:53 +08:00
parent 1f3365c942
commit c18594ad46
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ jobs:
- name: Build binary file
run: |
export LD_FLAGS="-w -s -X main.VERSION=$env.RELEASE_VERSION"
export LD_FLAGS="-w -s -X main.VERSION=${GITHUB_REF:10}"
go mod tidy
go build -o "output/study_xxqg" -trimpath -ldflags "$LD_FLAGS" ./