Update actions, sphinx version and build docs for every PR #16
Workflow file for this run
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
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml | |
name: Publish docs | |
on: | |
# For manual ref | |
workflow_dispatch: {} | |
push: | |
branches: [main, develop] | |
pull_request: | |
types: [opened, synchronize, edited, labeled, unlabeled] | |
branches: [main, develop] | |
# Needed for publishing to Github Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
publish: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: BEE Install | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3 python3-venv curl build-essential \ | |
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \ | |
libreadline-dev libffi-dev libbz2-dev libyaml-dev | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry update | |
poetry install | |
- name: Build Docs | |
run: | | |
poetry run make -C docs/sphinx html | |
- name: Upload | |
# Only do the upload if this is on main | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: docs/sphinx/_build/html | |
- name: Publish | |
id: deployment | |
uses: actions/deploy-pages@v1 |