Skip to content
Permalink
Browse files

goreleaser now sets version during building

  • Loading branch information...
cjbassi committed May 11, 2018
1 parent da6f6d2 commit 847b8022b2dcbeea4b06a8e36bb230f3a737add0
Showing with 4 additions and 7 deletions.
  1. +2 −5 build/build_steps.txt
  2. +2 −2 main.go
@@ -1,10 +1,7 @@
make sure gotop builds and runs
update version number in 'main.go' and 'scripts/download.sh'
commit changes
tag commit with latest version number
tag commit with version number
export GitHub token in shell
run `sudo dockerd`
run `goreleaser`
run `rm -r dist`
run `goreleaser --rm-dist`
run `git push`
update AUR package
@@ -15,7 +15,7 @@ import (
"github.com/docopt/docopt-go"
)

const VERSION = "1.2.15"
var version = "updated by goreleaser"

var (
termResized = make(chan bool, 1)
@@ -65,7 +65,7 @@ Colorschemes:
monokai
`

args, _ := docopt.ParseArgs(usage, os.Args[1:], VERSION)
args, _ := docopt.ParseArgs(usage, os.Args[1:], version)

if val, _ := args["--color"]; val != nil {
handleColorscheme(val.(string))

0 comments on commit 847b802

Please sign in to comment.
You can’t perform that action at this time.