-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (52 loc) · 1.54 KB
/
render-distill.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
56
57
58
59
60
61
62
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Render & Deploy Site
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install python dependencies
run: |
pip install pandas
pip install seaborn
pip install netCDF4
pip install cartopy
pip install cmocean
pip install git+http://github.com/euroargodev/argopy.git@master
- name: Install R dependencies
run: |
install.packages("distill")
install.packages("reticulate")
install.packages("leaflet")
install.packages("emoji")
shell: Rscript {0}
- name: Render site
run: |
rmarkdown::render_site(encoding = "UTF-8")
shell: Rscript {0}
- name: Checkout the gh-pages branch
if: success() && (github.ref == 'refs/heads/master')
uses: actions/checkout@master
with:
ref: gh-pages
path: pages-clone
- name: Deploy site to the gh-pages branch
if: success() && (github.ref == 'refs/heads/master')
run: |
cp -rf docs/* pages-clone/
cd pages-clone
git add -A
git commit -m 'Rebuild site' || echo "No changes to commit"
git push origin || echo "No changes to commit"