Initial commit #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 and Build | |
uses: ammaraskar/sphinx-action@master | |
with: | |
pre-build-command: | | |
apt-get update -y | |
apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended rinohtype | |
# pip install myst-parser | |
build-command: "make html rinoh" | |
docs-folder: . | |
- 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 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: pdfs | |
FOLDER: _build/rinoh | |
SINGLE_COMMIT: true |