Skip to content

Commit

Permalink
CI: Automatically deploy storage rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kündig committed Jan 24, 2025
1 parent 2a4123c commit 61361b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 61361b0

Please sign in to comment.