bump version #220
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: documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Latex Prerequisits | |
run: sudo apt install -y latexmk texlive-latex-extra | |
- name: Python Prerequisits | |
run: pip install -r docs/requirements.txt | |
- name: Build | |
working-directory: docs/ | |
run: make html latexpdf | |
- name: Copy PDF | |
working-directory: docs/ | |
run: cp _build/latex/reticula.pdf _build/html/_static/reticula.pdf | |
- name: Upload | |
id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/_build/html | |
deploy: | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |