File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,16 @@ jobs:
5757 command : |
5858 set +e
5959 source version
60- export VERSION ;
61- VERSION=$VERSION .${CIRCLE_BUILD_NUM}
62- export VERSION ;
63- echo $VERSION
60+ export RELEASE_VERSION ;
61+ RELEASE_VERSION=$RELEASE_VERSION .${CIRCLE_BUILD_NUM}
62+ export RELEASE_VERSION ;
63+ echo $RELEASE_VERSION
6464 go get -v -t -d ./...
6565 git config user.email "[email protected] " 6666 git config user.name "warrensbox"
67- git tag -a ${VERSION } -m "Release"
68- git push origin ${VERSION }
69- curl -L https://git.io/goreleaser | VERSION=${VERSION} bash
67+ git tag -a ${RELEASE_VERSION } -m "Release"
68+ git push origin ${RELEASE_VERSION }
69+ curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
7070 echo $GOPATH
7171 pwd
7272 ls
Original file line number Diff line number Diff line change 22# Make sure to check the documentation at http://goreleaser.com
33builds :
44 - ldflags :
5- - -s -w -X "main.version={{.Env.VERSION }}"
5+ - -s -w -X "main.version={{.Env.RELEASE_VERSION }}"
66 - main : main.go
77 binary : tfswitch
88 goos :
@@ -12,15 +12,15 @@ builds:
1212 goarch :
1313 - amd64
1414checksum :
15- name_template : ' {{ .ProjectName }}_{{.Env.VERSION }}_checksums.txt'
15+ name_template : ' {{ .ProjectName }}_{{.Env.RELEASE_VERSION }}_checksums.txt'
1616changelog :
1717 sort : asc
1818 filters :
1919 exclude :
2020 - ' ^docs:'
2121 - ' ^test:'
2222archive :
23- name_template : ' {{ .ProjectName }}_{{.Env.VERSION }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
23+ name_template : ' {{ .ProjectName }}_{{.Env.RELEASE_VERSION }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
2424 replacements :
2525 darwin : darwin
2626 linux : linux
Original file line number Diff line number Diff line change 1- VERSION =0.3
1+ RELEASE_VERSION =0.3
You can’t perform that action at this time.
0 commit comments