Skip to content

Commit 07afc7d

Browse files
authored
update release pipeline slightly (#327)
1 parent aba3950 commit 07afc7d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ build:
1818
- dragonfly
1919
goarch:
2020
- amd64
21-
- 386
2221
- arm
2322
- arm64
2423
ignore:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ branches:
99
# library, I'm not going to worry about older versions for now.
1010
go:
1111
- tip
12+
- 1.15.x
13+
- 1.14.x
1214
- 1.13.x
1315
- 1.12.x
1416
- 1.11.x
1517
- 1.10.x
1618
- 1.9.x
17-
- 1.8.x
18-
- 1.7.x
1919

2020
# don't call go get ./... because this hides when deps are
2121
# not packaged into the vendor directory.

magefile.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ func Install() error {
6767

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

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

0 commit comments

Comments
 (0)