Skip to content

Commit

Permalink
update release pipeline slightly (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
natefinch authored Dec 29, 2020
1 parent aba3950 commit 07afc7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ build:
- dragonfly
goarch:
- amd64
- 386
- arm
- arm64
ignore:
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ branches:
# library, I'm not going to worry about older versions for now.
go:
- tip
- 1.15.x
- 1.14.x
- 1.13.x
- 1.12.x
- 1.11.x
- 1.10.x
- 1.9.x
- 1.8.x
- 1.7.x

# don't call go get ./... because this hides when deps are
# not packaged into the vendor directory.
Expand Down
6 changes: 2 additions & 4 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ func Install() error {

var releaseTag = regexp.MustCompile(`^v1\.[0-9]+\.[0-9]+$`)

// Generates a new release. Expects the TAG environment variable to be set,
// which will create a new tag with that name.
func Release() (err error) {
tag := os.Getenv("TAG")
// Generates a new release. Expects a version tag in v1.x.x format.
func Release(tag string) (err error) {
if !releaseTag.MatchString(tag) {
return errors.New("TAG environment variable must be in semver v1.x.x format, but was " + tag)
}
Expand Down

0 comments on commit 07afc7d

Please sign in to comment.