Skip to content

Try with PAT and contents write #31

Try with PAT and contents write

Try with PAT and contents write #31

Workflow file for this run

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