Skip to content

Commit

Permalink
chore: fix workflow name and restrict to master (#101)
Browse files Browse the repository at this point in the history
* Rename publish-docs.workflow to main.workflow

GitHub Actions is very particular about this.

* See what GITHUB_REF gives us

* Single quotes

* Better args

* Don't hand-roll

* Copypasta

* Better name for checks
  • Loading branch information
malept authored and MarshallOfSound committed Jun 19, 2019
1 parent 8b9ecc2 commit 38c53d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/publish-docs.workflow → .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ workflow "Build & deploy docs" {
resolves = ["Publish Documentation"]
}

action "Publish Docs (master branch only)" {
uses = "actions/bin/filter@master"
args = "branch master"
}

action "Install Dependencies" {
uses = "actions/npm@master"
runs = "yarn"
args = "install"
needs = ["Publish Docs (master branch only)"]
}

action "Build Documentation" {
Expand Down

0 comments on commit 38c53d1

Please sign in to comment.