Skip to content

Update

Update #85

# Workflow derived from https://github.com/rstudio/r-manuals/tree/main/.github/workflows/build-website.yaml
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
name: Build Site
jobs:
build-website:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: quarto-dev/quarto-actions/install-quarto@v1
- name: Put pandoc in PATH
run: |
mkdir -p ~/.local/bin
ln -s $(dirname $(readlink -f $(which quarto)))"/pandoc" ~/.local/bin/pandoc
shell: bash
- name: Install system requirements
run: |
sudo apt-get update
sudo apt-get install -y fonts-ipafont
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libharfbuzz-dev
sudo apt-get install -y libfribidi-dev
sudo apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev
fc-cache -fv
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-renv@v2
- name: Build site 🔧
run: Rscript scripts/build_website.R
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: _book # The folder the action should deploy.