mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Fix goreleaser config for version
This commit is contained in:
parent
c7a44dd1a2
commit
ecfa514256
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ before:
|
|||
- test -n "{{ .Env.VERSION }}"
|
||||
# make sure the file VERSION contains the latest version (used for build.go)
|
||||
- bash -c 'echo "{{ .Env.VERSION }}" > VERSION'
|
||||
# make sure that mani.go contains the latest version
|
||||
- sed -i 's/var version = "[^"]*"/var version = "${VERSION}"/' cmd/rest-server/main.go
|
||||
# make sure that main.go contains the latest version
|
||||
- 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
|
||||
- calens --output CHANGELOG.md
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue