forgejo-runner-act/.github/main.workflow

30 lines
569 B
Text
Raw Normal View History

workflow "check-and-release" {
on = "push"
resolves = ["release"]
}
action "check" {
uses = "./.github/actions/check"
}
action "branch-filter" {
needs = ["check"]
uses = "actions/bin/filter@master"
args = "tag v*"
}
2019-01-23 14:13:09 +00:00
# only release on `v*` tags
action "release" {
needs = ["branch-filter"]
2019-01-23 15:35:12 +00:00
uses = "docker://goreleaser/goreleaser:v0.98"
args = "release"
secrets = ["GITHUB_TOKEN"]
}
2019-01-23 14:11:53 +00:00
# local action for `make build`
action "build" {
2019-01-23 15:35:12 +00:00
uses = "docker://goreleaser/goreleaser:v0.98"
args = "--snapshot --rm-dist"
secrets = ["SNAPSHOT_VERSION"]
2019-01-23 14:13:09 +00:00
}