Yeah also expand in the test #199
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: Sphinx build | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build HTML | |
uses: ammaraskar/sphinx-action@master | |
with: | |
pre-build-command: | | |
# Install necessary dependencies | |
apt-get update --allow-releaseinfo-change -y && apt-get install -y gcc python3-dev libpq-dev postgresql-client | |
pg_config --version | |
env: | |
SETUPTOOLS_SCM_PRETEND_VERSION: 1 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: html-docs | |
path: docs/_build/html/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_build/html |