Skip to content

test: deploy

test: deploy #5

Workflow file for this run

name: Build and Deploy Course
on:
push:
branches:
- main
- test
env:
QUARTO_LOG_LEVEL: DEBUG
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CRAN: "https://packagemanager.posit.co/cran/__linux__/jammy/latest"
GITHUB_PAT: ${{ secrets.PAT }}
steps:
- uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- name: Install R Packages
run: |
install.packages("pak", repos = Sys.getenv("CRAN"))
pak::pak(c("arrow", "cluster", "dplyr", "flextable", "formatters", "gdtools", "gfonts", "ggforce", "ggplot2", "grid", "magick", "officer", "palmerpenguins", "patchwork", "ragg", "readxl", "rmarkdown", "scales", "stringr", "systemfonts", "tables", "tibble", "tidyverse", "yaml", "remotes", "tinytex", "quarto", "knitr", "htmltools", "here", "renv"))
shell: Rscript {0}
# Generate the Quarto book
- name: Render Quarto Project
run: |
quarto render
shell: bash
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_book
destination_dir: "."
keep_files: true