Skip to content

Commit

Permalink
调整环境变量路径
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot-Liu committed Nov 24, 2022
1 parent 39e95b5 commit 4a50541
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
- name: Checkout #Checkout代码
uses: actions/checkout@v3
- name: GoTidy
run: go mod tidy -compat=1.17
run: |
go mod tidy -compat=1.17
echo "GOVERSION=$(go version)" >> $GITHUB_ENV
- name: Create archives on Release #创建各种系统架构下的二进制包并上传至release assets
uses: goreleaser/[email protected]
with:
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ builds:
gobinary: go
ldflags:
- -s -w
- -X "github.com/eolinker/apinto-dashboard/version.Version={{.Version}}"
- -X "github.com/eolinker/apinto-dashboard/version.gitCommit={{.Commit}}"
- -X "github.com/eolinker/apinto-dashboard/version.buildTime={{.Date}}"
- -X "github.com/eolinker/apinto-dashboard/version.buildUser=goreleaser"
- -X "github.com/eolinker/apinto-dashboard/version.goVersion={{.Env.GOVERSION}}"
- -X "github.com/eolinker/apinto-dashboard/app/apinto-dashboard/version.Version={{.Version}}"
- -X "github.com/eolinker/apinto-dashboard/app/apinto-dashboard/version.gitCommit={{.Commit}}"
- -X "github.com/eolinker/apinto-dashboard/app/apinto-dashboard/version.buildTime={{.Date}}"
- -X "github.com/eolinker/apinto-dashboard/app/apinto-dashboard/version.buildUser=goreleaser"
- -X "github.com/eolinker/apinto-dashboard/app/apinto-dashboard/version.goVersion={{.Env.GOVERSION}}"
archives:
- id: default
format: tar.gz
Expand Down

0 comments on commit 4a50541

Please sign in to comment.