Skip to content

Commit

Permalink
Github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
mw committed Mar 20, 2024
1 parent 7569931 commit ab4422d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build main branch documentation website

on:
push:
branches: [main]

permissions:
contents: write

jobs:
docs:
name: Generate Website
runs-on: ubuntu-latest
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: poetry install --with docs

- name: Build
run: sphinx-build -b dirhtml -v docs _build

- name: Remove .doctrees
run: rm -r _build/.doctrees

- name: Upload to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _build
target-folder: main
clean: false

0 comments on commit ab4422d

Please sign in to comment.