Skip to content

Commit 5facd55

Browse files
authored
chore: re-add deployment to Firebase (angular#980)
1 parent bd94ea0 commit 5facd55

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "angular-ja"
4+
}
5+
}

.github/workflows/adev-production-deploy.yml

+7
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ jobs:
4444
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4545
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
4646
CLOUDFLARE_PAGES_PROJECT: ${{ vars.CLOUDFLARE_PAGES_PROJECT }}
47+
- name: Deploy to Firebase Hosting
48+
uses: FirebaseExtended/[email protected]
49+
with:
50+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
51+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
52+
projectId: angular-ja
53+
channelId: live

firebase.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build/dist/bin/adev/build/browser",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

0 commit comments

Comments
 (0)