-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (72 loc) · 2.11 KB
/
Copy pathdeploy.yml
File metadata and controls
82 lines (72 loc) · 2.11 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Render & Deploy Quarto Site
on:
push:
branches: [main, master]
workflow_dispatch:
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install Linux system libraries for R packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libwebp-dev \
libmagick++-dev \
libudunits2-dev \
libgdal-dev \
gdal-bin \
libgeos-dev \
libproj-dev \
proj-data \
proj-bin \
sqlite3 \
libsqlite3-dev \
make \
g++ \
pkg-config
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
# Packages required by active Quarto R chunks in subsites/consortium.qmd.
extra-packages: |
any::knitr
any::rmarkdown
any::leaflet
any::base64enc
any::sf
any::dplyr
any::ggplot2
any::ggrepel
any::ggimage
any::rnaturalearth
github::ropensci/rnaturalearthhires
cache-version: 2
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render Quarto site
run: quarto render
- name: Commit and push docs/
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git diff --staged --quiet || (git commit -m "Auto-render site [skip ci]" && git push)