Skip to content

Commit bbca604

Browse files
committed
add firebase hosting deployment
1 parent 0bbe88c commit bbca604

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Deploy
3+
on:
4+
push:
5+
branches: main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-22.04
9+
container: node:20-alpine
10+
steps:
11+
- name: Check out repository code
12+
uses: actions/checkout@v4
13+
- name: Install dependencies
14+
run: npm i
15+
- name: Build the site
16+
run: npm run build
17+
- name: Deploy to Firebase Hosting
18+
uses: FirebaseExtended/action-hosting-deploy@v0
19+
with:
20+
firebaseServiceAccount: "${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}"
21+
projectId: personal-419019
22+
channelId: live

firebase.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"hosting": {
3+
"site": "calculator-me6msjmd",
4+
"public": "dist",
5+
"headers": [
6+
{
7+
"source": "**",
8+
"headers": [
9+
{
10+
"key": "Content-Security-Policy",
11+
"value": "default-src 'self';"
12+
}
13+
]
14+
}
15+
]
16+
}
17+
}

0 commit comments

Comments
 (0)