2019-01-24 16:05:14 -05:00
|
|
|
workflow "New workflow" {
|
|
|
|
on = "push"
|
|
|
|
resolves = ["Shell"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "npm install" {
|
|
|
|
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
|
|
|
|
args = "install"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "npm run build" {
|
|
|
|
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
|
|
|
|
needs = ["npm install"]
|
|
|
|
args = "run build"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Shell" {
|
|
|
|
uses = "veggiemonk/bin/git@master"
|
2019-01-24 16:12:50 -05:00
|
|
|
args = "TOKEN=$GITHUB_TOKEN node buildMetadata.js && ./push.sh"
|
2019-01-24 16:05:14 -05:00
|
|
|
needs = ["npm run build"]
|
|
|
|
secrets = ["GITHUB_TOKEN"]
|
|
|
|
env = {
|
|
|
|
"GIT_EMAIL" = "alex.blaine@layder.io"
|
|
|
|
GIT_USERNAME = "veggiemonk"
|
|
|
|
}
|
2019-01-24 16:18:32 -05:00
|
|
|
runs = "sh -c \"$@\""
|
2019-01-24 16:05:14 -05:00
|
|
|
}
|