Skip to content

Commit

Permalink
Update main.workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
championswimmer authored Oct 10, 2019
1 parent 393fdc4 commit 9a53876
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ action "Test" {
}

workflow "NPM and Docs Publish" {
resolves = ["Publish", "Github Pages"]
resolves = [
"Github Pages",
"Publish",
]
on = "release"
}

action "Publish" {
uses = "actions/npm@master"
args = "publish --access public"
secrets = ["NPM_AUTH_TOKEN"]
}

action "Github Pages" {
uses = "JamesIves/github-pages-deploy-action@master"
env = {
Expand All @@ -38,3 +35,15 @@ action "Github Pages" {
"ACCESS_TOKEN",
]
}

action "Build for Publish" {
uses = "actions/npm@master"
args = "build"
}

action "Publish" {
uses = "actions/npm@master"
args = "publish --access publish"
secrets = ["NPM_AUTH_TOKEN"]
needs = ["Build for Publish"]
}

0 comments on commit 9a53876

Please sign in to comment.