Bump docker/build-push-action from 4 to 5 #357
Workflow file for this run
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
LOCALTILESERVER_BUILDING_DOCS: true | |
jobs: | |
build-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
# Install everything else | |
- name: Install other dependencies | |
run: | | |
pip install -r requirements_jupyter.txt -r requirements_doc.txt | |
- name: Install localtileserver | |
run: pip install -e . | |
- name: Scooby Report | |
run: python -c "import localtileserver;print(localtileserver.Report())" | |
- name: Build Documentation | |
working-directory: doc | |
run: make html | |
- name: Stash build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: doc-build | |
path: doc/build | |
deploy: | |
name: Publish Documentation | |
runs-on: ubuntu-latest | |
needs: build-doc | |
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: doc-build | |
path: doc/build | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: doc/build/html | |
cname: localtileserver.banesullivan.com |