act/.github/main.workflow

48 lines
950 B
Text
Raw Normal View History

workflow "check-and-release" {
on = "push"
resolves = ["release"]
}
action "check" {
uses = "./.github/actions/check"
}
action "release-filter" {
needs = ["check"]
uses = "actions/bin/filter@master"
args = "tag 'v*'"
}
2019-01-23 08:13:09 -06:00
# only release on `v*` tags
action "release" {
needs = ["release-filter"]
2019-01-23 09:35:12 -06:00
uses = "docker://goreleaser/goreleaser:v0.98"
args = "release"
secrets = ["GITHUB_TOKEN"]
}
2019-01-23 08:11:53 -06:00
# local action for `make build`
action "build" {
2019-01-23 09:35:12 -06:00
uses = "docker://goreleaser/goreleaser:v0.98"
args = "--snapshot --rm-dist"
secrets = ["SNAPSHOT_VERSION"]
2019-01-23 08:13:09 -06:00
}
# local action for `make vendor`
action "vendor" {
uses = "docker://golang:1.11.4"
args = "go mod vendor"
}
2019-02-07 11:50:30 -06:00
action "integration-tests" {
needs = ["check"]
uses = "./.github/actions/integration"
}
# local release
action "local-release" {
needs = ["integration-tests"]
uses = "docker://goreleaser/goreleaser:v0.98"
args = "release"
secrets = ["GITHUB_TOKEN"]
}