Skip to content

Commit 40408ed

Browse files
committed
Handle releases too
1 parent a7322d6 commit 40408ed

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/main.workflow

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,38 @@
1-
# pushes
1+
# pushes trigger the testsuite
22
workflow "Push Event" {
33
on = "push"
4-
resolves = ["Execute"]
4+
resolves = ["Test"]
55
}
66

7-
# pull-requests
7+
# pull-requests trigger the testsuite
88
workflow "Pull Request" {
99
on = "pull_request"
10-
resolves = ["Execute"]
10+
resolves = ["Test"]
1111
}
1212

13-
# Run the magic
14-
action "Execute" {
13+
# releases trigger new binary artifacts
14+
workflow "Handle Release" {
15+
on = "release"
16+
resolves = ["Upload"]
17+
}
18+
19+
##
20+
## The actions
21+
##
22+
23+
24+
##
25+
## Run the test-cases, via .github/run-tests.sh
26+
##
27+
action "Test" {
1528
uses = "skx/github-action-tester@master"
1629
}
30+
31+
##
32+
## Build the binaries, via .github/build, then upload them.
33+
##
34+
action "Upload" {
35+
uses = "skx/github-action-publish-binaries@master"
36+
args = "puppet-*"
37+
secrets = ["GITHUB_TOKEN"]
38+
}

0 commit comments

Comments
 (0)