-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (30 loc) · 1.08 KB
/
gh-pages.yml
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
# Based on:-
# * https://ropenscilabs.github.io/actions_sandbox/websites-using-pkgdown-bookdown-and-blogdown.html#action-to-deploy-a-bookdown-site
# * https://github.com/peaceiris/actions-gh-pages
on:
push:
branches:
- master
name: Render documentation
jobs:
documentation:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-pandoc@v1
# - name: System dependencies (curl for httr)
# run: sudo apt-get install curl libcurl4-openssl-dev
- name: Install build-docs prerequisites
run: Rscript -e 'install.packages(c("pkgdown", "devtools", "gadget2", "mfdb"))'
- name: Install Rgadget
run: devtools::install(dependencies = TRUE, upgrade = "always")
shell: Rscript {0}
- name: Render Documentation
run: Rscript -e "pkgdown::build_site()"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./docs