From f993bae0d75a709247445ff14cab51e79339df46 Mon Sep 17 00:00:00 2001 From: Peter Siemens Date: Tue, 3 Dec 2024 10:42:12 -0800 Subject: [PATCH] Upload static files to GCS --- .github/workflows/deploy-staging.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 2cb8c1f44..ff8514b2a 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -36,3 +36,14 @@ jobs: - name: Collect Django static files run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput + + - uses: 'google-github-actions/auth@v2' + with: + workload_identity_provider: 'projects/1012602718138/locations/global/workloadIdentityPools/ubyssey-wif-pool-staging/providers/ubyssey-oidc-github-staging' + service_account: 'deployment@ubyssey-staging.iam.gserviceaccount.com' + + - uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: 'static' + destination: 'ubyssey-staging' +