Skip to content

Commit

Permalink
Adds GitHub actions (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Jul 25, 2019
1 parent ce47f54 commit b33fe14
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
workflow "Test and Deploy on release" {
on = "release"
resolves = ["Alias deployment"]
}

action "Build" {
uses = "actions/npm@master"
args = "install"
}

action "Test" {
needs = "Build"
uses = "actions/npm@master"
args = "test"
}

action "Deploy to ZEIT" {
needs = "Test"
uses = "actions/zeit-now@666edee2f3632660e9829cb6801ee5b7d47b303d"
args = "--team minelev"
secrets = ["ZEIT_TOKEN"]
}

action "Alias deployment" {
uses = "actions/zeit-now@666edee2f3632660e9829cb6801ee5b7d47b303d"
needs = ["Deploy to ZEIT"]
args = "alias --team minelev"
secrets = ["ZEIT_TOKEN"]
}

0 comments on commit b33fe14

Please sign in to comment.