|
name: Publish PyGreSQL documentation |
|
|
|
on: |
|
push: |
|
branches: |
|
- main |
|
|
|
jobs: |
|
docs: |
|
name: Build documentation |
|
runs-on: ubuntu-24.04 |
|
|
|
steps: |
|
- name: Check out repository |
|
uses: actions/checkout@v6 |
|
- name: Set up Python 3.14 |
|
uses: actions/setup-python@v6 |
|
with: |
|
python-version: 3.14 |
|
- name: Install dependencies |
|
run: | |
|
sudo apt install libpq-dev |
|
python -m pip install --upgrade pip |
|
pip install . |
|
pip install "sphinx>=9,<10" |
|
- name: Create docs with Sphinx |
|
run: | |
|
cd docs |
|
make html |
|
- name: Deploy docs to GitHub pages |
|
uses: peaceiris/actions-gh-pages@v3 |
|
with: |
|
github_token: ${{ secrets.GITHUB_TOKEN }} |
|
publish_branch: gh-pages |
|
publish_dir: docs/_build/html |
|
cname: pygresql.org |
|
enable_jekyll: false |
|
force_orphan: true |