@@ -208,9 +208,29 @@ The workflow is already configured in `.github/workflows/deploy-firebase.yml` an
208208- Deploy to Firebase automatically
209209- Can also be triggered manually from GitHub Actions UI
210210
211- ### B. Add Firebase Service Account Secret to GitHub
211+ ### B. Add Required Secrets to GitHub
212212
213- 1 . ** Generate Firebase Service Account Key:**
213+ You need to add ** 7 secrets** total: 6 Firebase config variables and 1 service account.
214+
215+ 1 . ** Add Firebase Configuration Secrets:**
216+
217+ - Go to your GitHub repository: ` https://github.com/YOUR_USERNAME/8x8x8x8 `
218+ - Click ** Settings** (top menu)
219+ - In the left sidebar, click ** Secrets and variables** → ** Actions**
220+ - Click ** New repository secret** for each of the following:
221+
222+ | Secret Name | Value Source |
223+ | -------------| --------------|
224+ | ` VITE_FIREBASE_API_KEY ` | From Firebase Console → Project Settings → General → Your apps → SDK setup and configuration |
225+ | ` VITE_FIREBASE_AUTH_DOMAIN ` | Same as above |
226+ | ` VITE_FIREBASE_PROJECT_ID ` | Same as above |
227+ | ` VITE_FIREBASE_STORAGE_BUCKET ` | Same as above |
228+ | ` VITE_FIREBASE_MESSAGING_SENDER_ID ` | Same as above |
229+ | ` VITE_FIREBASE_APP_ID ` | Same as above |
230+
231+ These values should match what you put in your ` .env.local ` file (Step 5).
232+
233+ 2 . ** Add Firebase Service Account Secret:**
214234
215235 - Go to [ Firebase Console] ( https://console.firebase.google.com/ )
216236 - Select your project: ** eightxeightxeightxeight**
@@ -219,22 +239,16 @@ The workflow is already configured in `.github/workflows/deploy-firebase.yml` an
219239 - Click ** Generate new private key**
220240 - Click ** Generate key** to download the JSON file
221241 - Open the downloaded JSON file and copy its ** entire contents**
222-
223- 2 . ** Add Secret to GitHub Repository:**
224-
225- - Go to your GitHub repository: ` https://github.com/YOUR_USERNAME/8x8x8x8 `
226- - Click ** Settings** (top menu)
227- - In the left sidebar, click ** Secrets and variables** → ** Actions**
228- - Click ** New repository secret**
242+ - Back in GitHub: Click ** New repository secret**
229243 - Name: ` FIREBASE_SERVICE_ACCOUNT `
230- - Value: Paste the entire JSON content from step 1
244+ - Value: Paste the entire JSON content
231245 - Click ** Add secret**
232246
2332473 . ** Commit and Push the Workflow:**
234248
235249 ``` bash
236250 git add .github/workflows/deploy-firebase.yml
237- git commit -m " Add GitHub Actions deployment workflow"
251+ git commit -m " feat: add GitHub Actions deployment workflow"
238252 git push origin main
239253 ```
240254
0 commit comments