-
Notifications
You must be signed in to change notification settings - Fork 11
134 lines (132 loc) · 6.37 KB
/
firebase-hosting-prod.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to production
"on":
push:
branches:
- prod
jobs:
build_and_deploy_iron_fellowship:
name: Build and Deploy Iron Fellowship to Firebase Hosting
runs-on: ubuntu-latest
environment: Production
env:
VITE_IRON_FELLOWSHIP_FIREBASE_APIKEY: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_APIKEY }}"
VITE_IRON_FELLOWSHIP_FIREBASE_AUTHDOMAIN: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_AUTHDOMAIN }}"
VITE_IRON_FELLOWSHIP_FIREBASE_PROJECTID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID }}"
VITE_IRON_FELLOWSHIP_FIREBASE_STORAGEBUCKET: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_STORAGEBUCKET }}"
VITE_IRON_FELLOWSHIP_FIREBASE_MESSAGINGSENDERID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_MESSAGINGSENDERID }}"
VITE_IRON_FELLOWSHIP_FIREBASE_APPID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_APPID }}"
VITE_CREW_LINK_FIREBASE_APIKEY: "${{ secrets.CREW_LINK_FIREBASE_APIKEY }}"
VITE_CREW_LINK_FIREBASE_AUTHDOMAIN: "${{ secrets.CREW_LINK_FIREBASE_AUTHDOMAIN }}"
VITE_CREW_LINK_FIREBASE_PROJECTID: "${{ secrets.CREW_LINK_FIREBASE_PROJECTID }}"
VITE_CREW_LINK_FIREBASE_STORAGEBUCKET: "${{ secrets.CREW_LINK_FIREBASE_STORAGEBUCKET }}"
VITE_CREW_LINK_FIREBASE_MESSAGINGSENDERID: "${{ secrets.CREW_LINK_FIREBASE_MESSAGINGSENDERID }}"
VITE_CREW_LINK_FIREBASE_APPID: "${{ secrets.CREW_LINK_FIREBASE_APPID }}"
VITE_POSTHOG_KEY: "${{secrets.POSTHOG_KEY}}"
VITE_POSTHOG_HOST: "${{secrets.POSTHOG_HOST}}"
VITE_TITLE: "Iron Fellowship"
VITE_FAVICON_PATH: "/iron-fellowship-logo.svg"
VITE_OPENGRAPH_PATH: "/assets/ironsworn/opengraph-default.png"
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_SERVICE_ACCOUNT }}"
channelId: live
projectId: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID }}"
deploy_firestore_and_storage_rules_iron_fellowship:
name: Deploy Firestore and Storage rules and indexes to Iron Fellowship
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2
- uses: w9jds/[email protected]
with:
args: deploy --only firestore
env:
GCP_SA_KEY: ${{ secrets.IRON_FELLOWSHIP_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID}}"
- uses: w9jds/[email protected]
with:
args: deploy --only storage
env:
GCP_SA_KEY: ${{ secrets.IRON_FELLOWSHIP_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID}}"
deploy_functions_iron_fellowship:
name: Deploy Firebase Functions to Iron Fellowship
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2
- run: cd functions && npm ci && npm run build
- uses: w9jds/[email protected]
with:
args: deploy --only functions
env:
GCP_SA_KEY: ${{ secrets.IRON_FELLOWSHIP_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID}}"
build_and_deploy_crew_link:
name: Build and Deploy Crew Link to Firebase Hosting
runs-on: ubuntu-latest
environment: Production
env:
VITE_IRON_FELLOWSHIP_FIREBASE_APIKEY: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_APIKEY }}"
VITE_IRON_FELLOWSHIP_FIREBASE_AUTHDOMAIN: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_AUTHDOMAIN }}"
VITE_IRON_FELLOWSHIP_FIREBASE_PROJECTID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_PROJECTID }}"
VITE_IRON_FELLOWSHIP_FIREBASE_STORAGEBUCKET: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_STORAGEBUCKET }}"
VITE_IRON_FELLOWSHIP_FIREBASE_MESSAGINGSENDERID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_MESSAGINGSENDERID }}"
VITE_IRON_FELLOWSHIP_FIREBASE_APPID: "${{ secrets.IRON_FELLOWSHIP_FIREBASE_APPID }}"
VITE_CREW_LINK_FIREBASE_APIKEY: "${{ secrets.CREW_LINK_FIREBASE_APIKEY }}"
VITE_CREW_LINK_FIREBASE_AUTHDOMAIN: "${{ secrets.CREW_LINK_FIREBASE_AUTHDOMAIN }}"
VITE_CREW_LINK_FIREBASE_PROJECTID: "${{ secrets.CREW_LINK_FIREBASE_PROJECTID }}"
VITE_CREW_LINK_FIREBASE_STORAGEBUCKET: "${{ secrets.CREW_LINK_FIREBASE_STORAGEBUCKET }}"
VITE_CREW_LINK_FIREBASE_MESSAGINGSENDERID: "${{ secrets.CREW_LINK_FIREBASE_MESSAGINGSENDERID }}"
VITE_CREW_LINK_FIREBASE_APPID: "${{ secrets.CREW_LINK_FIREBASE_APPID }}"
VITE_POSTHOG_KEY: "${{secrets.POSTHOG_KEY}}"
VITE_POSTHOG_HOST: "${{secrets.POSTHOG_HOST}}"
VITE_TITLE: "Crew Link for Starforged"
VITE_FAVICON_PATH: "/crew-link-logo.svg"
VITE_OPENGRAPH_PATH: "/assets/starforged/opengraph-default.png"
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.CREW_LINK_FIREBASE_SERVICE_ACCOUNT }}"
channelId: live
projectId: "${{ secrets.CREW_LINK_FIREBASE_PROJECTID }}"
deploy_firestore_and_storage_rules_crew_link:
name: Deploy Firestore and Storage rules and indexes to Crew Link
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2
- uses: w9jds/[email protected]
with:
args: deploy --only firestore
env:
GCP_SA_KEY: ${{ secrets.CREW_LINK_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.CREW_LINK_FIREBASE_PROJECTID}}"
- uses: w9jds/[email protected]
with:
args: deploy --only storage
env:
GCP_SA_KEY: ${{ secrets.CREW_LINK_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.CREW_LINK_FIREBASE_PROJECTID}}"
deploy_functions_crew_link:
name: Deploy Firebase Functions to Crew Link
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v2
- run: cd functions && npm ci && npm run build
- uses: w9jds/[email protected]
with:
args: deploy --only functions
env:
GCP_SA_KEY: ${{ secrets.CREW_LINK_FIREBASE_SERVICE_ACCOUNT }}
PROJECT_ID: "${{secrets.CREW_LINK_FIREBASE_PROJECTID}}"