Merge pull request #5 from tsaarni/cert-extensions #22
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: generate-docs | |
on: | |
push: | |
branches: | |
- main | |
# Required by github-pages-deploy-action to push pages to the repository | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Install dependencies | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
python3 -m pip install -r dev-requirements.txt --upgrade pip | |
- name: Sphinx build | |
run: | | |
source .venv/bin/activate | |
cd docs | |
make html | |
- name: Copy built docs to publish folder | |
run: | | |
mkdir -p publish | |
cp -r docs/_build/html/* publish | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: publish |