From 725abf607c41da17bc373cb68824e3ca94207864 Mon Sep 17 00:00:00 2001 From: Darshit Suratwala Date: Thu, 18 Sep 2025 15:23:14 +0530 Subject: [PATCH] feat: adding release job --- .github/workflows/release.yaml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..848f2fb --- /dev/null +++ b/.github/workflows/release.yaml @@ -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