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
on: | |
push: | |
branches: | |
- r-universe-aaltobda | |
# paths: ['**.Rmd'] | |
name: Render and Publish Website | |
permissions: | |
contents: write | |
pages: write | |
jobs: | |
render-website: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
tinytex: true | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
extra-repositories: 'https://stan-dev.r-universe.dev https://avehtari.r-universe.dev' | |
- name: Install R dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: any::rmarkdown, any::sessioninfo, any::tidyr, any::cmdstanr, any::aaltobda | |
- name: Render Main Rmarkdown Website | |
run: rmarkdown::render_site() | |
shell: Rscript {0} | |
# TODO(Andrew): This should be handled in the source repo and simply checked out here | |
- name: Render Assignments Quarto Sub-website | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: assignments | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GH_ACTION}} | |
publish_branch: gh-pages | |
keep_files: true | |
publish_dir: . |