Merge pull request #565 from danangmassandy/feature/mask-activity-online #271
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: Build documentation | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build-docs: | |
runs-on: ubuntu-20.04 | |
container: | |
image: qgis/qgis:release-3_34 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
key: ${{github.ref}} | |
path: .cache | |
- name: Fix Python command | |
run: apt-get install python-is-python3 | |
- name: Install plugin development dependencies | |
run: pip install -r requirements-dev.txt | |
- name: Update the documentation | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global --add safe.directory /__w/cplus-plugin/cplus-plugin | |
PYTHONPATH=src mkdocs gh-deploy --force |