Add OGC Features Filters tutorial (#13) #77
This file contains hidden or 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: | |
| name: Build and Deploy Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| - name: Install requirements 📦 | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r workshop/content/requirements.txt | |
| - name: Build site 📦 | |
| run: | | |
| cd workshop/content | |
| zensical build --clean --strict | |
| mv site /tmp/ | |
| - name: checkout gh-pages branch | |
| uses: actions/checkout@master | |
| with: | |
| ref: gh-pages | |
| - name: Deploy to GitHub Pages 📦 | |
| run: | | |
| git checkout gh-pages | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| ls | grep -v ".nojekyll"| xargs rm -fr | |
| mv -f /tmp/site/* . | |
| git add . | |
| git commit -am "update website via GitHub Actions" | |
| git push |