Skip to content

Commit 4fbd464

Browse files
authored
Fix pipeline docs + use wli (#138)
1 parent b150e8b commit 4fbd464

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/docs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
env:
13+
GCP_WORKLOAD_IDENTITY_PROVIDER: "projects/224545243904/locations/global/workloadIdentityPools/gh-nuclia/providers/gh-nuclia-provider"
14+
GCP_SERVICE_ACCOUNT: "github-actions@nuclia-internal.iam.gserviceaccount.com"
15+
816
jobs:
917
publish-doc:
1018
name: Publish documentation
@@ -13,12 +21,16 @@ jobs:
1321
- name: Checkout repository
1422
uses: actions/checkout@v4
1523

16-
- uses: google-github-actions/auth@v2
24+
- name: Authenticate to Google Cloud
25+
id: gcp-auth-models-mount
26+
uses: google-github-actions/auth@v2
1727
with:
18-
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
28+
workload_identity_provider: "${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
29+
service_account: "${{ env.GCP_SERVICE_ACCOUNT }}"
30+
token_format: access_token
1931

2032
- name: 'Set up Cloud SDK'
21-
uses: 'google-github-actions/setup-gcloud@v0'
33+
uses: 'google-github-actions/setup-gcloud@v2'
2234

2335
- name: Push SDK docs to GCS
2436
run: gsutil rsync -r ./docs gs://${{ secrets.DOCS_STORAGE }}/python-sdk

0 commit comments

Comments
 (0)