Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Docs Build & Deploy

on:
push:
branches:
- main
# paths:
# - "docs/**"
# - "examples/**"
# - ".github/workflows/docs.yml"
workflow_dispatch:

jobs:
docs:
name: Build and Deploy Docs
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
pip install uv
uv sync

- name: Build docs
run: |
make generate-api-docs build-docs

- name: Set up gcloud CLI
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_DEVNET_MISC_SERVICE_ACCOUNT_KEY }}

- name: Upload docs to GCS
uses: google-github-actions/upload-cloud-storage@v2
with:
path: docs/_build
destination: gs://${{ vars.DOCS_BUCKET }}/
parent: false