parent
bbf3393a4d
commit
08d84ef127
|
@ -3,7 +3,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -12,24 +11,18 @@ jobs:
|
|||
- uses: ammaraskar/sphinx-action@master
|
||||
with:
|
||||
docs-folder: "docs/"
|
||||
pre-build-command: "apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-xetex texlive-latex-extra texlive-fonts-recommended fonts-freefont-otf"
|
||||
build-command: "make html && make latexpdf"
|
||||
build-command: "make html"
|
||||
# Create an artifact of the html output.
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: DocumentationHTML
|
||||
path: docs/_build/html/
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: DocumentationPDFSpecification
|
||||
path: docs/_build/latex/
|
||||
# Publish built docs to gh-pages branch.
|
||||
# ===============================
|
||||
- name: Commit documentation changes
|
||||
run: |
|
||||
git clone https://github.com/M17-Project/M17_spec.git --branch gh-pages --single-branch gh-pages
|
||||
cp -r docs/_build/html/* gh-pages/
|
||||
cp -r docs/_build/latex/M17Protocol*.pdf gh-pages/
|
||||
cd gh-pages
|
||||
touch .nojekyll
|
||||
git config --local user.email "smiller@kc1awv.net"
|
||||
|
|
Loading…
Reference in New Issue