Merge pull request #18 from wanadev/dependabot/github_actions/pypa/ci… #47
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 Github pages" | |
on: | |
push: | |
branches: master | |
jobs: | |
build-and-deploy: | |
name: "Build and deploy Sphinx documentation" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout the repository" | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
submodules: true | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: "Install Python dependencies" | |
run: | | |
pip install setuptools nox | |
pip install cffi pillow sphinx sphinx-rtd-theme | |
- name: "Build Sphinx Doc" | |
run: | | |
nox -s gendoc | |
- name: "Deploy Github Pages" | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
BRANCH: gh-pages | |
FOLDER: build/html/ |