Skip to content

Fix blocking code on upload and wait routine (#143) #179

Fix blocking code on upload and wait routine (#143)

Fix blocking code on upload and wait routine (#143) #179

Workflow file for this run

name: Push docs
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
env:
GCP_WORKLOAD_IDENTITY_PROVIDER: "projects/224545243904/locations/global/workloadIdentityPools/gh-nuclia/providers/gh-nuclia-provider"
GCP_SERVICE_ACCOUNT: "[email protected]"
jobs:
publish-doc:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Authenticate to Google Cloud
id: gcp-auth-models-mount
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ env.GCP_SERVICE_ACCOUNT }}"
token_format: access_token
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: Push SDK docs to GCS
run: gsutil rsync -r ./docs gs://${{ secrets.DOCS_STORAGE }}/python-sdk