Skip to content

Commit

Permalink
Deploy Python docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Sep 4, 2024
1 parent 8847b62 commit 6797766
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python docs

on:
push:
branches: [ develop ]

permissions:
actions: read
contents: write
deployments: write

jobs:
deploy-python-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python

- name: build Python docs
run: rye run sphinx-build -M html . _build
working-directory: pyvortex/docs
- run: |
mv pyvortex/docs/_build /tmp/_build
git fetch origin
this_sha=$(git rev-parse HEAD)
git checkout origin/gh-pages-bench
rm -rf docs
mv /tmp/_build docs
git add docs
git config --global user.email "[email protected]"
git config --global user.name "github-action-deploy-python-docs"
git commit -m 'Python docs for '$this_sha
git push origin HEAD:gh-pages-bench
git checkout 'HEAD@{2}'

0 comments on commit 6797766

Please sign in to comment.