-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.28 KB
/
publish.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
name: Build and Deploy
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install latex
run: |
sudo apt-get update -y
sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
- name: Build
uses: ammaraskar/sphinx-action@master
with:
docs-folder: .
pre-build-command: |
pip install rinohtype
cp _static/__init__.py /usr/local/lib/python3.8/site-packages/rinoh/language
cp _static/bg.py /usr/local/lib/python3.8/site-packages/rinoh/language
build-command: "make html"
- name: Deploy HTML
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _build/html
SINGLE_COMMIT: true
- name: Deploy PDF
if: false
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pdfs
FOLDER: _build/rinoh
SINGLE_COMMIT: true