Created
October 31, 2018 17:27
-
-
Save mscoutermarsh/58903b4ebc888a1be845b9e75d2b2fd1 to your computer and use it in GitHub Desktop.
GitHub Actions - install, test and deploy node.js to Zeit Now
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
} |
Author
mscoutermarsh
commented
Oct 31, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment