From 61361b0cb1a889680e973338ce28b0589c70adca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BCndig?= Date: Fri, 24 Jan 2025 15:36:07 +0100 Subject: [PATCH] CI: Automatically deploy storage rules --- .github/workflows/deployment.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 68a768567..9a794ed46 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -97,7 +97,7 @@ jobs: run: GOOGLE_APPLICATION_CREDENTIALS=credentials.json firebase deploy --only functions --project ${{ inputs.project }} deploy-rules: - name: Deploy rules on Firebase + name: Deploy Firestore and Storage rules on Firebase runs-on: ubuntu-latest if: inputs.component == 'rules' steps: @@ -112,4 +112,6 @@ jobs: firebaseServiceAccountJSON: ${{ (inputs.project == 'social-income-prod' && secrets.FIREBASE_SERVICE_ACCOUNT_SOCIAL_INCOME_PROD) || secrets.FIREBASE_SERVICE_ACCOUNT_SOCIAL_INCOME_STAGING }} - name: Deploy on Firebase (${{ inputs.project }}) - run: GOOGLE_APPLICATION_CREDENTIALS=credentials.json firebase deploy --only firestore:rules --project ${{ inputs.project }} + run: | + GOOGLE_APPLICATION_CREDENTIALS=credentials.json firebase deploy --only firestore:rules --project ${{ inputs.project }} + GOOGLE_APPLICATION_CREDENTIALS=credentials.json firebase deploy --only storage:rules --project ${{ inputs.project }}