-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1.81 KB
/
firebase-hosting-merge-dev.yml
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
29
30
31
32
33
34
35
36
37
38
name: Deploy to Firebase Hosting on merge (DEV)
on:
push:
branches:
- dev
jobs:
build_and_deploy:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm i && pnpm build --mode="preview"
env:
VITE_FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }}
VITE_FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }}
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.FIREBASE_MESSAGIN_SENDER_ID }}
VITE_FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.FIREBASE_MEASUREMENT_ID }}
VITE_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
VITE_APP_ENV: preview
VITE_APP_CHECK_KEY: ${{ secrets.FIREBASE_APP_CHECK_KEY }}
VITE_APPLICATIONS_COLLECTION: ${{ secrets.APPLICATIONS_COLLECTION }}
VITE_TICKETS_COLLECTION: ${{ secrets.TICKETS_COLLECTION }}
VITE_RSVP_COLLECTION: ${{ secrets.RSVPS_COLLECTION }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HAWKHACKS_DASHBOARD }}"
projectId: "${{ secrets.FIREBASE_PROJECT_ID }}"
expires: 30d
channelId: "${{ secrets.DEV_PREVIEW_CHANNEL }}"