add unit 10 (placeholder) #44
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: | |
- main | |
paths: | |
- "website/**" | |
- ".github/workflows/publish.yml" | |
name: Render and Publish | |
permissions: | |
contents: write | |
pages: write | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Restore package cache | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-1-${{ hashFiles('renv.lock') }} | |
restore-keys: ${{ runner.os }}-1- | |
path: renv/library | |
- name: 📘 Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: 1.5.55 | |
tinytex: false | |
- name: 🆙 Setup R | |
uses: r-lib/actions/setup-r@v2 | |
- name: 📦 Install dependencies with renv | |
uses: r-lib/actions/setup-renv@v2 | |
env: | |
RENV_CONFIG_PAK_ENABLED: true | |
with: | |
cache-version: 3 | |
- name: 📰 Render and Publish to GitHub Pages | |
uses: gadenbuie/quarto-actions/publish@quarto-render-working-dir | |
with: | |
target: gh-pages | |
working-directory: website |