1
0

main.workflow 646 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # pushes trigger the testsuite
  2. workflow "Push Event" {
  3. on = "push"
  4. resolves = ["Test"]
  5. }
  6. # pull-requests trigger the testsuite
  7. workflow "Pull Request" {
  8. on = "pull_request"
  9. resolves = ["Test"]
  10. }
  11. # releases trigger new binary artifacts
  12. workflow "Handle Release" {
  13. on = "release"
  14. resolves = ["Upload"]
  15. }
  16. ##
  17. ## The actions
  18. ##
  19. ##
  20. ## Run the test-cases, via .github/run-tests.sh
  21. ##
  22. action "Test" {
  23. uses = "skx/github-action-tester@master"
  24. }
  25. ##
  26. ## Build the binaries, via .github/build, then upload them.
  27. ##
  28. action "Upload" {
  29. uses = "skx/github-action-publish-binaries@master"
  30. args = "rss2hook-*"
  31. secrets = ["GITHUB_TOKEN"]
  32. }