Skip to content

Commit

Permalink
added automatic releases using goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Mar 30, 2019
1 parent dde41bd commit 4df84c9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
workflow "Quality" {
workflow "Build" {
on = "push"
resolves = ["test"]
resolves = ["test", release"]
}
action "test" {
uses = "actions/docker/cli@master"
args = "build --target acceptance ."
}
action "is-tag" {
uses = "actions/bin/filter@master"
args = "tag"
}
action "release" {
uses = "docker://goreleaser/goreleaser"
secrets = [
"GITHUB_TOKEN",
]
args = "release"
needs = ["test", "is-tag"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
conftest
TODO.md
dist
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 4df84c9

Please sign in to comment.