Skip to content

Commit

Permalink
Update main.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Jan 23, 2019
1 parent 8a07215 commit b25b683
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
workflow "Build and Lint on push" {
on = "push"
resolves = [
"docker://node:10",
"Build",
"Lint",
"Deploy"
]
}

Expand All @@ -17,8 +17,21 @@ action "Build" {
args = "yarn build"
}

action "docker://node:10" {
action "Lint" {
uses = "docker://node:10"
needs = ["Install"]
args = "yarn lint"
}

action "Only master branch" {
uses = "actions/bin/filter@707718ee26483624de00bd146e073d915139a3d8"
needs = ["Build", "Lint"]
args = "branch master"
}

action "Deploy" {
uses = "docker://node:10"
needs = ["Only master branch"]
args = ["bash", "-c", "yarn firebase deploy --token $FIREBASE_TOKEN"]
secrets = ["FIREBASE_TOKEN"]
}

0 comments on commit b25b683

Please sign in to comment.