Skip to content

Commit ac63cb8

Browse files
feat(workflows): add Firebase environment variables to build steps in deploy and publish workflows
- Included Firebase API key, auth domain, project ID, and Google Analytics measurement ID as environment variables in both deploy.yml and publish.yml. - This enhancement supports the integration of Firebase services during the build process.
1 parent bc938a5 commit ac63cb8

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222

2323
- name: Build web
2424
run: npm run build -w packages/web
25+
env:
26+
VITE_FIREBASE_API_KEY: AIzaSyA8NdosgijoZoOSTHoRY4XA5WH-58OF3Yk
27+
VITE_FIREBASE_AUTH_DOMAIN: botschat-130ff.firebaseapp.com
28+
VITE_FIREBASE_PROJECT_ID: botschat-130ff
29+
VITE_GA_MEASUREMENT_ID: G-HKJNG1X0JE
2530

2631
- name: Deploy to Cloudflare
2732
uses: cloudflare/wrangler-action@v3

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939

4040
- name: Build web
4141
run: npm run build -w packages/web
42+
env:
43+
VITE_FIREBASE_API_KEY: AIzaSyA8NdosgijoZoOSTHoRY4XA5WH-58OF3Yk
44+
VITE_FIREBASE_AUTH_DOMAIN: botschat-130ff.firebaseapp.com
45+
VITE_FIREBASE_PROJECT_ID: botschat-130ff
46+
VITE_GA_MEASUREMENT_ID: G-HKJNG1X0JE
4247

4348
- name: Publish plugin
4449
run: npm publish -w packages/plugin --access public

0 commit comments

Comments
 (0)