Skip to content

[pre-commit.ci] pre-commit autoupdate (#833) #213

[pre-commit.ci] pre-commit autoupdate (#833)

[pre-commit.ci] pre-commit autoupdate (#833) #213

Workflow file for this run

name: Deploy documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Build and push docs
run: |
git config user.name Packit
git config user.email [email protected]
python3 -m pip install --upgrade pip
python3 -m pip install setuptools
python3 -m pip install .
python3 -m pip install pdoc3 pygments
python3 -m pdoc --html -o built_docs ogr
mv built_docs/ogr docs
touch .nojekyll
COMMIT_SHA=$(git log -1 --format=%h)
git checkout --orphan gh-pages
git rm --cached '*'
git add docs .nojekyll
git commit -m "Update docs for $COMMIT_SHA"
git push --force origin gh-pages
shell: bash