Skip to content

Fix permissions for doc publishing. (#332) #104

Fix permissions for doc publishing. (#332)

Fix permissions for doc publishing. (#332) #104

Workflow file for this run

name: Release docs
on:
push:
branches: ["main"]
jobs:
Build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
make install-docs
- name: Build docs
run: |
cd docs
make html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html