Skip to content

Commit

Permalink
Add firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Antosser committed Apr 14, 2024
1 parent eef8ccd commit 753f831
Show file tree
Hide file tree
Showing 8 changed files with 1,229 additions and 140 deletions.
6 changes: 6 additions & 0 deletions .firebase/hosting.ZGlzdC8waC1oMS1haS9icm93c2Vy.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
styles-5INURTSO.css,1713124395659,f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec
404.html,1713124446402,6537619fa0edb6a05c3fa83265461172fea2307ecff34424f323310c8c8eb4be
favicon.ico,1713124395661,f891d3c78bfcb38430d604f7e1956f0ae8f73508766619127fc94c5dbbfb1d08
index.html,1713124395659,cb8cc322be72691682100b9243e0b1de942a22b601f9eb9b9bc22753ae31b301
polyfills-RT5I6R6G.js,1713124395659,fbf651fa0c6ec424306bc8c84868e7368f672f843f0d01e05e83c9cb6bfa88bd
main-7GIBSWGH.js,1713124395660,fbd1fd6e470247415013062364de8451368844360d7ac37016c51b269d1e1b87
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ohhi-ai"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_OHHI_AI }}'
channelId: live
projectId: ohhi-ai
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_OHHI_AI }}'
projectId: ohhi-ai
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "dist/0h-h1-ai/browser",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
Loading

0 comments on commit 753f831

Please sign in to comment.