Skip to content

Commit

Permalink
add publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thht committed Sep 20, 2024
1 parent 8eb044f commit 7c3bccb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: documentation

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
- uses: prefix-dev/[email protected]
with:
pixi-version: latest
cache: true
locked: false
frozen: false
environments: ['doc']
- run: pixi run -e doc build_docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build/html
publish_branch: 'gh-pages'
force_orphan: 'false'

0 comments on commit 7c3bccb

Please sign in to comment.