Skip to content

Create a developer docs workflow #5

Create a developer docs workflow

Create a developer docs workflow #5

Workflow file for this run

---
name: Publish Develop Docs
on:
pull_request:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setting up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
architecture: x64
- name: Setting up nox
uses: wntrblm/[email protected]
with:
python-versions: "3.10"
- name: Configure Git Credentials
run: |
git config user.email "[email protected]"
git config user.name "GitHub Action"
- name: Build Documentation
run: |
git fetch origin gh-pages:gh-pages
nox -s docs -- deploy --update-aliases dev
git push origin gh-pages