Skip to content

Commit

Permalink
feat: add gcp upload for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Aug 30, 2024
1 parent 590d6b5 commit 0ebd9f3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,18 @@ jobs:
pip install -r docs/source/requirements.txt
- name: Build docs
run: |
sphinx-build -M html docs/source docs/build
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/[email protected]
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'

0 comments on commit 0ebd9f3

Please sign in to comment.