Skip to content

fix: release-plz rejects ignored but checked in files (#1159) #2

fix: release-plz rejects ignored but checked in files (#1159)

fix: release-plz rejects ignored but checked in files (#1159) #2

Workflow file for this run

name: Python & Rust 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: spiraldb/actions/.github/actions/[email protected]
- name: build Python docs
run: |
set -ex
(cd pyvortex && uv run maturin develop)
(cd docs && uv run make html)
- name: commit python docs to gh-pages-bench
run: |
set -ex
built_sha=$(git rev-parse HEAD)
rm -rf docs/_build/html/rust/CACHETAG.DIR docs/_build/html/rust/debug
mv docs/_build/html /tmp/html
git fetch origin
git checkout origin/gh-pages-bench
rm -rf docs
mv /tmp/html docs
git add docs
git config --global user.email "[email protected]"
git config --global user.name "github-action-deploy-python-docs"
# Only try to commit if there exist changes
git diff --quiet HEAD || {
git commit -m 'Python docs for '$built_sha
git push origin HEAD:gh-pages-bench
}
git checkout $built_sha