v0.0.1 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on usethis::use_github_action('pkgdown'), providing below workflow | |
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
# Edits: | |
# rename to quarto-render-pages.yml | |
# use render, publish from https://github.com/quarto-dev/quarto-actions/blob/main/examples/example-07-publish-single-format.md | |
on: | |
push: | |
branches: [main, master] | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: Quarto render pages | |
jobs: | |
quarto: | |
runs-on: ubuntu-latest | |
# Only restrict concurrency for non-PR jobs | |
concurrency: | |
group: quarto-${{ github.event_name != 'pull_request' || github.run_id }} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
- run: | | |
quarto --version | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::pkgdown, local::. | |
needs: website | |
- uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
to: html | |
- uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
target: gh-pages | |
render: false |