Skip to content

Commit

Permalink
Merge pull request #18 from OctopusDeploy/actions
Browse files Browse the repository at this point in the history
Build and publish binaries on tag
  • Loading branch information
jeff-french authored May 7, 2019
2 parents e4f5484 + c51ebff commit 8df6c8e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
workflow "Publish binaries on release" {
resolves = ["publish"]
on = "push"
}

action "release-tag" {
uses = "actions/bin/filter@master"
args = "tag"
}

action "build" {
uses = "sosedoff/actions/golang-build@master"
env = {
GO111MODULE = "on"
}
needs = ["release-tag"]
}

action "publish" {
uses = "docker://moonswitch/github-upload-release:master"
secrets = ["GITHUB_TOKEN"]
needs = ["build"]
}

0 comments on commit 8df6c8e

Please sign in to comment.