From ecfa514256b79baae102f0a4cd408ea6f05916d6 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 24 May 2020 10:45:14 +0200 Subject: [PATCH] Fix goreleaser config for version --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3126559..a974e2d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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