workflow "Build and deploy to gh-pages" {
on = "push"
resolves = [
"Deploy if on master",
"Test",
"Production build && Deploy",
]
}
action "Production build && Deploy" {
uses = "docker://node:10"
needs = ["Deploy if on master"]
secrets = [
"DEPLOY_USER",
"GITHUB_TOKEN",
]
runs = "npm run deploy"
}