2019-01-12 22:45:25 -06:00
|
|
|
workflow "check-and-release" {
|
|
|
|
on = "push"
|
|
|
|
resolves = ["release"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "check" {
|
|
|
|
uses = "./.github/actions/check"
|
|
|
|
}
|
|
|
|
|
2019-01-17 02:45:37 -06:00
|
|
|
action "branch-filter" {
|
2019-01-12 22:45:25 -06:00
|
|
|
needs = ["check"]
|
|
|
|
uses = "actions/bin/filter@master"
|
|
|
|
args = "tag v*"
|
2019-01-17 02:45:37 -06:00
|
|
|
}
|
2019-01-12 22:45:25 -06:00
|
|
|
|
2019-01-23 08:13:09 -06:00
|
|
|
# only release on `v*` tags
|
2019-01-17 02:45:37 -06:00
|
|
|
action "release" {
|
2019-01-12 22:45:25 -06:00
|
|
|
needs = ["branch-filter"]
|
|
|
|
uses = "docker://goreleaser/goreleaser:v0.97"
|
|
|
|
args = "release"
|
|
|
|
secrets = ["GITHUB_TOKEN"]
|
2019-01-17 02:45:37 -06:00
|
|
|
}
|
|
|
|
|
2019-01-23 08:11:53 -06:00
|
|
|
# local action for `make build`
|
2019-01-17 02:45:37 -06:00
|
|
|
action "build" {
|
|
|
|
uses = "docker://goreleaser/goreleaser:v0.97"
|
|
|
|
args = "--snapshot --rm-dist"
|
|
|
|
secrets = ["SNAPSHOT_VERSION"]
|
2019-01-23 08:13:09 -06:00
|
|
|
}
|