-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.08 KB
/
build_adodown_site.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
name: Build Site
on:
push:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools, here
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.0.37
- name: Install adodownr
run: |
install.packages("devtools")
devtools::install_github("lsms-worldbank/adodownr")
shell: Rscript {0}
- name: Build site
run: adodownr::build_site(pkg_dir = here::here(), site_dir = here::here())
shell: Rscript {0}
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
clean: false
folder: docs
branch: gh-pages