-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.15 KB
/
bookdown.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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
name: bookdown
jobs:
bookdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
- uses: r-lib/actions/setup-renv@f57f1301a053485946083d7a45022b278929a78a
# - name: Cache bookdown results
# uses: actions/cache@v2
# with:
# path: _bookdown_files
# key: bookdown-${{ hashFiles('**/*Rmd') }}
# restore-keys: bookdown-
- uses: r-lib/actions/setup-tinytex@v1
- name: Build site
run: Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE, output_format = "all")'
- name: Deploy to GitHub pages 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: master
folder: docs
target-folder: docs