Skip to content

Commit

Permalink
Handle releases too
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Feb 24, 2019
1 parent a7322d6 commit 40408ed
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
# pushes
# pushes trigger the testsuite
workflow "Push Event" {
on = "push"
resolves = ["Execute"]
resolves = ["Test"]
}

# pull-requests
# pull-requests trigger the testsuite
workflow "Pull Request" {
on = "pull_request"
resolves = ["Execute"]
resolves = ["Test"]
}

# Run the magic
action "Execute" {
# releases trigger new binary artifacts
workflow "Handle Release" {
on = "release"
resolves = ["Upload"]
}

##
## The actions
##


##
## Run the test-cases, via .github/run-tests.sh
##
action "Test" {
uses = "skx/github-action-tester@master"
}

##
## Build the binaries, via .github/build, then upload them.
##
action "Upload" {
uses = "skx/github-action-publish-binaries@master"
args = "puppet-*"
secrets = ["GITHUB_TOKEN"]
}

0 comments on commit 40408ed

Please sign in to comment.