diff --git a/.github/main.workflow b/.github/main.workflow index 35539a3..960fcc4 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -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"] +}