feat(github): use GitHub actions for heroku app

This is to test using GitHub actions for building and deploying demo app to Heroku. Right now TravisCI is used for that purpose.
This commit is contained in:
Łukasz Mierzwa
2019-03-03 13:31:52 +00:00
committed by GitHub
parent 22abc4dab3
commit dcdc99b6d3

24
.github/heroku.workflow vendored Normal file
View File

@@ -0,0 +1,24 @@
workflow "Deploy demo app to Heroku" {
on = "push"
resolves = "release"
}
action "login" {
uses = "actions/heroku@master"
args = "container:login"
secrets = ["HEROKU_API_KEY"]
}
action "push" {
uses = "actions/heroku@master"
needs = "login"
args = "container:push -a karma-demo web"
secrets = ["HEROKU_API_KEY"]
}
action "release" {
uses = "actions/heroku@master"
needs = "push"
args = "container:release -a karma-demo web"
secrets = ["HEROKU_API_KEY"]
}