Skip to content

Commit

Permalink
Publish example for gha - use correct array syntax for branch
Browse files Browse the repository at this point in the history
Avoid triggering linting error in VSCODE

closes quarto-dev/quarto-cli#10207
  • Loading branch information
cderv committed Jul 16, 2024
1 parent 3d41b26 commit 8e2a637
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions docs/publishing/github-pages.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Once you've completed a local publish, add a `publish.yml` GitHub Action to your
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -181,7 +181,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -221,7 +221,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down
6 changes: 3 additions & 3 deletions docs/publishing/netlify.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Now, commit and push your modified project (including `_freeze`, `netlify.toml`,
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -148,7 +148,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -185,7 +185,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down
6 changes: 3 additions & 3 deletions docs/publishing/posit-cloud.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ To setup your publish action, create a `.github/workflows/publish.yml` file in y
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -235,7 +235,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -273,7 +273,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down
6 changes: 3 additions & 3 deletions docs/publishing/quarto-pub.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ See the article on [Publishing with CI](ci.qmd) for additional details on non-in
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -162,7 +162,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -199,7 +199,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down
6 changes: 3 additions & 3 deletions docs/publishing/rstudio-connect.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ To setup your publish action, create a `.github/workflows/publish.yml` file in y
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -295,7 +295,7 @@ Here is a complete example of a GitHub Action that installs Python, Jupyter, and
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down Expand Up @@ -333,7 +333,7 @@ Here is a complete example of a GitHub Action that installs R and package depend
on:
workflow_dispatch:
push:
branches: main
branches: [main]
name: Quarto Publish
Expand Down

0 comments on commit 8e2a637

Please sign in to comment.