-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bbe88c
commit bbca604
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Deploy | ||
on: | ||
push: | ||
branches: main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
container: node:20-alpine | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: npm i | ||
- name: Build the site | ||
run: npm run build | ||
- name: Deploy to Firebase Hosting | ||
uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
firebaseServiceAccount: "${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}" | ||
projectId: personal-419019 | ||
channelId: live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"hosting": { | ||
"site": "calculator-me6msjmd", | ||
"public": "dist", | ||
"headers": [ | ||
{ | ||
"source": "**", | ||
"headers": [ | ||
{ | ||
"key": "Content-Security-Policy", | ||
"value": "default-src 'self';" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |