-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (43 loc) · 1.3 KB
/
build-pages.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
52
53
54
55
on:
pull_request:
branches: [main]
name: update-page-docs
jobs:
update-page-docs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
- uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install devtools
run: |
sudo apt-get install -y \
libssl-dev \
libcurl4-openssl-dev \
libharfbuzz-dev \
libfribidi-dev
Rscript -e 'install.packages("devtools")'
- name: Prepare Git
run: |-
git config user.name github-actions[bot]
git config user.email github-actions[bot]@github.com
git checkout --orphan gh-pages
- name: build-vignettes
run: |
Rscript -e 'devtools::load_all()'
Rscript -e 'devtools::build_vignettes()'
mv doc/PathwaySpace.html doc/index.html
git add -f doc
git commit -m 'Update github page' doc
- name: Push docs to Github Pages
run: |-
git status
git push origin `git subtree split --prefix doc gh-pages`:gh-pages --force