From 8f09e225ca27b86816356613302b3be8d4c6c962 Mon Sep 17 00:00:00 2001 From: stdavis Date: Tue, 1 Oct 2024 16:01:41 -0600 Subject: [PATCH] fix: make release (prod) deploys match push (dev) deploys --- .github/workflows/push.yml | 2 +- .github/workflows/release.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a38b7f9..c650721 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -78,7 +78,7 @@ jobs: project_id: ${{ secrets.PROJECT_ID }} identity_provider: ${{ secrets.IDENTITY_PROVIDER }} service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} - pause_schedule_job: 'yes' github_token: ${{ secrets.GITHUB_TOKEN }} agol_org: ${{ vars.AGOL_ORG }} tag_name: ${{ vars.TAG_NAME }} + pause_schedule_job: 'yes' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2f90d9..ee2e7ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ concurrency: jobs: deploy-cloudrun-prod: - name: Deploy Cloudrun to production + name: Deploy Cloud Run to production runs-on: ubuntu-latest environment: name: prod @@ -38,6 +38,8 @@ jobs: deploy-firebase-prod: name: Deploy Firebase project to production runs-on: ubuntu-latest + permissions: + id-token: write environment: name: prod url: https://ut-dts-agrc-moonwalk-prod.web.app/ @@ -54,8 +56,8 @@ jobs: identity_provider: ${{ secrets.IDENTITY_PROVIDER }} service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} project_id: ${{ secrets.PROJECT_ID }} - build_command: npm run build -- --mode production firebase_config: ${{ secrets.FIREBASE_CONFIG }} + build_command: npm run build -- --mode production notify: name: Notifications