Skip to content

Commit

Permalink
Add build docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed Apr 27, 2024
1 parent 70e830f commit 3eae137
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Docs

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install zint
run: pip install .[docs]

- name: Build docs
run: sphinx-build docs build

- name: Deploy to GitHub Pages
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build

0 comments on commit 3eae137

Please sign in to comment.