Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
Created October 31, 2018 17:27
Show Gist options
  • Save mscoutermarsh/58903b4ebc888a1be845b9e75d2b2fd1 to your computer and use it in GitHub Desktop.
Save mscoutermarsh/58903b4ebc888a1be845b9e75d2b2fd1 to your computer and use it in GitHub Desktop.
GitHub Actions - install, test and deploy node.js to Zeit Now
workflow "Deploy master" {
on = "push"
resolves = [
"alias",
]
}
action "install" {
uses = "actions/npm@94e6933"
args = "install"
}
action "test" {
needs = ["install"]
uses = "actions/npm@94e6933"
args = "test"
}
action "master branch" {
needs = ["test"]
uses = "actions/bin/filter@8738e95"
args = "branch master"
secrets = ["GITHUB_TOKEN"]
}
action "deploy" {
needs = ["master branch"]
uses = "actions/zeit-now@d9a6263"
secrets = ["ZEIT_TOKEN"]
}
action "alias" {
needs = ["deploy"]
uses = "actions/zeit-now@d9a6263"
args = "alias"
secrets = ["ZEIT_TOKEN"]
}
@mscoutermarsh
Copy link
Author

mscoutermarsh commented Oct 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment