aboutsummaryrefslogtreecommitdiff
path: root/.github/main.workflow
blob: 7d21b0c403d9d25306f28d68b8d4cbf48f6ab017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
workflow "Build" {
  on = "push"
  resolves = ["Deploy to pages"]
}

action "Test" {
  uses = "./.github/action"
  args = "test"
}

action "Coverage" {
  uses = "./.github/action"
  args = "lein cloverage --junit"
  needs = ["Test"]
}

action "Package" {
  uses = "./.github/action"
  args = "package"
  needs = ["Coverage"]
}

action "Deploy to pages" {
  uses = "JamesIves/github-pages-deploy-action@master"
  env = {
    BRANCH = "gh-pages"
    FOLDER = "public"
  }
  secrets = ["ACCESS_TOKEN"]
  needs = ["Package"]
}