Update docs, add pdf version #2
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
# Syntax reference for this file: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
name: pynssp documentation | |
on: [push, pull_request] | |
# https://gist.github.com/c-bata/ed5e7b7f8015502ee5092a3e77937c99 | |
jobs: | |
build-and-delpoy: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v2 | |
# https://github.com/marketplace/actions/setup-python | |
# ^-- This gives info on matrix testing. | |
- name: Install Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements_dev.txt && pip install sphinxcontrib-googleanalytics | |
- name: Build Sphinx docs | |
run: | | |
make docs | |
# https://github.com/peaceiris/actions-gh-pages | |
- name: Deploy | |
if: success() | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.API_TOKEN_GITHUB }} | |
publish_dir: docs/_build/html/ |