From 0ebd9f39578f80bb40cdc4da9df945953e7864c8 Mon Sep 17 00:00:00 2001 From: James Briggs <james.briggs@hotmail.com> Date: Fri, 30 Aug 2024 19:55:10 +0200 Subject: [PATCH] feat: add gcp upload for docs --- .github/workflows/docs.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9fd26d7a..ec69d081 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,4 +36,18 @@ jobs: pip install -r docs/source/requirements.txt - name: Build docs run: | - sphinx-build -M html docs/source docs/build \ No newline at end of file + sphinx-build -M html docs/source docs/build + - uses: actions/checkout@v4 + name: Checkout + - name: Authenticate to Google Cloud + id: auth + uses: google-github-actions/auth@v1.1.1 + with: + token_format: "access_token" + workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} + service_account: ${{ vars.GCP_SERVICE_ACCOUNT }} + - id: 'upload-file' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: 'docs/build/html/**' + destination: 'docs-bucket-production/semantic-router' \ No newline at end of file -- GitLab