Skip to content

Commit

Permalink
add firebase hosting deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelghost committed Apr 26, 2024
1 parent 0bbe88c commit bbca604
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
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
17 changes: 17 additions & 0 deletions firebase.json
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';"
}
]
}
]
}
}

0 comments on commit bbca604

Please sign in to comment.