mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Fix goreleaser config for version
This commit is contained in:
@@ -12,8 +12,8 @@ before:
|
|||||||
- test -n "{{ .Env.VERSION }}"
|
- test -n "{{ .Env.VERSION }}"
|
||||||
# make sure the file VERSION contains the latest version (used for build.go)
|
# make sure the file VERSION contains the latest version (used for build.go)
|
||||||
- bash -c 'echo "{{ .Env.VERSION }}" > VERSION'
|
- bash -c 'echo "{{ .Env.VERSION }}" > VERSION'
|
||||||
# make sure that mani.go contains the latest version
|
# make sure that main.go contains the latest version
|
||||||
- sed -i 's/var version = "[^"]*"/var version = "${VERSION}"/' cmd/rest-server/main.go
|
- echo sed -i 's/var version = "[^"]*"/var version = "{{ .Env.VERSION }}"/' cmd/rest-server/main.go
|
||||||
# make sure the file CHANGELOG.md is up to date
|
# make sure the file CHANGELOG.md is up to date
|
||||||
- calens --output CHANGELOG.md
|
- calens --output CHANGELOG.md
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user