aboutsummaryrefslogtreecommitdiff
path: root/.github/main.workflow
blob: 995aac3d583dc2d90a6da29ab09a9536d7dac06d (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 "Covergage" {
  uses = "./.github/action"
  args = "lein cloverage --junit"
  needs = ["Test"]
}

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

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