-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (36 loc) · 1.04 KB
/
build_docs.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
38
39
40
41
42
43
44
45
46
name: Sphinx Docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install graphviz - Ubuntu
run: sudo apt-get install graphviz pandoc
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '3.6.2'
- name: Install renv
run: Rscript -e "install.packages(c('renv'), repos='https://cran.rstudio.com')"
- name: Install python packages
run: pip install tox
- name: Tox
run: tox -e docs
- name: Deploy docs to gh-pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: docs
FOLDER: docs
CLEAN: true