-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (25 loc) · 1.1 KB
/
callFirebaseDeploy.yml
File metadata and controls
28 lines (25 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Template: Call Firebase Deploy
#
# Copy this file into your repo's .github/workflows/ directory and customize
# the values below for your organization's Firebase projects.
#
# Prerequisites:
# 1. Add a GCP_SA_KEY secret to your repo (JSON key for a service account
# with Firebase Admin permissions across your projects)
# 2. Run scripts/setup-project-permissions.sh for each project to configure
# the required IAM roles and APIs
#
# Usage from another repo (reusable workflow):
# uses: TechArtists/backend-firebase-function-save-payload/.github/workflows/firebaseFunctionDeploy.yml@main
name: Call Firebase Deploy
on:
workflow_dispatch:
jobs:
deploy:
uses: TechArtists/backend-firebase-function-save-payload/.github/workflows/firebaseFunctionDeploy.yml@main
with:
function-name: savePayload # Firebase function to deploy
projects: "project-a,project-b,project-c" # Comma-separated Firebase project IDs
target-bucket: your_bucket_name # GCS bucket for payload storage
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}