Try quoting env vars in sphinx-build call #32
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: deploy_docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy_docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out source | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Eyeball native environment | |
run: python --version ; pip --version ; poetry --version ; pwd ; ls -la | |
- name: Install package dependencies | |
run: poetry install | |
- name: Install docs dependencies | |
run: poetry run pip install -r docs/requirements.txt | |
- name: Build HTML | |
run: | | |
cd docs/ | |
poetry run make html | |
- name: Deploy HTML to GitHub Pages | |
uses: peaceiris/[email protected] | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build/html |