Skip to content

Scheduled weekly dependency update for week 15 #87

Scheduled weekly dependency update for week 15

Scheduled weekly dependency update for week 15 #87

Workflow file for this run

name: Docs
on:
workflow_dispatch:
release:
types: [ published ]
pull_request:
branches:
- main
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./docs"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install client and dependencies
working-directory: "./"
run: |
python -m pip install --upgrade pip setuptools
pip install .
- name: Install docs dependencies
run: |
pip install -r requirements-docs.txt
- name: Build documentation
run: SPHINXOPTS="-W" make html
- name: Upload build artifact
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: docs-html
path: docs/build/html
deploy:
name: Deploy documentation
needs: build
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: docs-html
path: docs-html
- name: Authenticate with Google
uses: "google-github-actions/auth@v2"
with:
project_id: ${{ secrets.GCS_PROJECT }}
credentials_json: ${{ secrets.GCS_SERVICE_ACCOUNT_ACCESS_KEY }}
- name: Set up Cloud SDK
uses: "google-github-actions/setup-gcloud@v2"
- name: Upload to Google Cloud Storage
env:
UPLOAD_PATH: ${{ format('gs://{0}/docs/client', secrets.DOCS_BUCKET) }}
run: gsutil -m rsync -d -r docs-html $UPLOAD_PATH
- name: Invalidate CDN Cache
env:
LOAD_BALANCER: ${{ secrets.LOAD_BALANCER_NAME }}
run: gcloud compute url-maps invalidate-cdn-cache $LOAD_BALANCER --async --path "/docs/client/*"