bump to version 1.0.3 (#612) #231
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: Publish docs via GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
# Only rebuild website when docs have changed | |
# Comment out when testing locally via act! | |
- 'docs/**' | |
- 'examples/**' | |
- 'CHANGELOG.md' | |
- 'mkdocs.yml' | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install GDAL | |
run: | | |
sudo apt update | |
sudo add-apt-repository ppa:ubuntugis/ppa -y | |
sudo apt update -y | |
sudo apt-get install python3-dev -y | |
sudo apt-get install libpq-dev gdal-bin libgdal-dev -y | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
version: 1.7.1 | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction --no-ansi | |
- name: Create symlinks for examples and changelog | |
run: | | |
ls | |
mkdir docs/examples | |
mv examples/* docs/examples | |
mv CHANGELOG.md docs | |
- name: Deploy docs | |
run: | | |
poetry run mkdocs gh-deploy --force -m "update gh-pages [ci skip]" |