-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.47 KB
/
build_website.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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.