Merge pull request #44 from infinityofspace/dependabot/pip/ruff-appro… #38
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: build and publish docs | |
on: | |
push: | |
tags: | |
- "v*" | |
branches: # for testing | |
- main | |
jobs: | |
build: | |
name: build and publish docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.12 | |
- name: Install sphinx | |
run: pip install sphinx | |
- name: Build docs | |
run: cd docs && make html | |
- name: Publish docs to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/build/html |