Skip to content

Commit

Permalink
Update main.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnovichkov authored Jun 17, 2019
1 parent 4cb4066 commit 135555e
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
workflow "publish on release" {
resolves = ["publish"]
workflow "Build, Test, and Publish" {
resolves = [
"Publish",
]
on = "release"
}

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

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

# Filter for master branch
action "Master" {
needs = "Test"
uses = "actions/bin/filter@master"
args = "branch master"
}

action "Publish" {
needs = "Master"
uses = "artemnovichkov/action-zem@master"
args = "publish"
secrets = ["ZEM_TOKEN"]
}

0 comments on commit 135555e

Please sign in to comment.