Skip to content

Commit

Permalink
still trying to fix travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arguablykomodo committed Sep 25, 2018
1 parent 395a156 commit 3e3261e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
before:
hooks:
- go run manifest-generator/main.go {{.Version}}
builds:
- binary: shadowfox
goos:
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ language: go
go:
- "1.10"
before_script:
- sudo apt install git
- go get github.com/akavel/rsrc
deploy:
- provider: script
skip_cleanup: true
script:
- export V="$(git describe)"
- go run manifest-generator/main.go $(git describe)
- curl -sL https://git.io/goreleaser | bash
on:
tags: true
2 changes: 1 addition & 1 deletion manifest-generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
findStr,
append(
findStr,
[]byte(" version=\""+strings.TrimPrefix(os.Getenv("V"), "v")+"\"\n")...,
[]byte(" version=\""+strings.TrimPrefix(os.Args[1], "v")+"\"\n")...,
),
-1,
),
Expand Down

0 comments on commit 3e3261e

Please sign in to comment.