-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (31 loc) · 1010 Bytes
/
deploy.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
on:
push:
branches:
- master
name: renderbook
jobs:
bookdown:
name: render
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install TeXlive
run: sudo apt-get update && sudo apt-get install texlive texlive-latex-extra
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install R packages
run: Rscript -e 'install.packages(c("rmarkdown", "bookdown","fontawesome","webshot","rsvg","tinytex"))'
- name: Install phamtomJS for webshot
run: Rscript -e 'webshot::install_phantomjs()'
- name: Render Book
run: Rscript build.R
- name: Create cname file
uses: finnp/create-file-action@master
env:
FILE_NAME: "./_book/CNAME"
FILE_DATA: "manual.obis.org"
- name: Deploy to gh-pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_book