Release 0.50.2 (#868) #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |