Skip to content
forked from c9s/bbgo

Commit

Permalink
should also update the dev version file
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 8, 2021
1 parent 6482b13 commit a37efb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@ dist: static dist-bbgo-linux dist-bbgo-darwin desktop

pkg/version/version.go: .FORCE
bash utils/generate-version-file.sh > $@
git commit $@ -m "bump version to $(VERSION)" || true

version: pkg/version/version.go migrations
pkg/version/dev.go: .FORCE
VERSION_SUFFIX="-dev" bash utils/generate-version-file.sh > $@

version: pkg/version/version.go pkg/version/dev.go migrations
git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true
[[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1)
git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add release note" || true
git tag -f $(VERSION)
Expand Down

0 comments on commit a37efb4

Please sign in to comment.