Skip to content

Commit

Permalink
add firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
giridhar7632 committed Aug 12, 2024
1 parent bc99634 commit a28d786
Show file tree
Hide file tree
Showing 87 changed files with 7,526 additions and 3,055 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "formulate-six"
}
}
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_FORMULATE_SIX }}
channelId: live
projectId: formulate-six
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_FORMULATE_SIX }}
projectId: formulate-six
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ yarn-error.log*
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
6 changes: 1 addition & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
{}
9 changes: 0 additions & 9 deletions .xata/migrations/.ledger

This file was deleted.

11 changes: 0 additions & 11 deletions .xata/migrations/mig_cmb60g523j3qskm6gi1g_abeab8cf.json

This file was deleted.

18 changes: 0 additions & 18 deletions .xata/migrations/mig_cmb60u4ris27dutbp5mg_e36efc98.json

This file was deleted.

16 changes: 0 additions & 16 deletions .xata/migrations/mig_cmbapanbfsbuprjc9klg_d6cb5825.json

This file was deleted.

12 changes: 0 additions & 12 deletions .xata/migrations/mig_cmbaphfbfsbuprjc9kn0_74523a76.json

This file was deleted.

16 changes: 0 additions & 16 deletions .xata/migrations/mig_cmbapjitqco05cv5o72g_b9ae7ec2.json

This file was deleted.

16 changes: 0 additions & 16 deletions .xata/migrations/mig_cmbapmfbfsbuprjc9ko0_6f2d0433.json

This file was deleted.

19 changes: 0 additions & 19 deletions .xata/migrations/mig_cmbaq7fbfsbuprjc9krg_ce9e9733.json

This file was deleted.

17 changes: 0 additions & 17 deletions .xata/migrations/mig_cmbce8jr4o6tfr2n3ec0_96700da9.json

This file was deleted.

Loading

0 comments on commit a28d786

Please sign in to comment.