Skip to content

Commit

Permalink
Merge pull request #41 from cherryontech/kat-firebase-setup
Browse files Browse the repository at this point in the history
firebase setup
  • Loading branch information
KatKowalik authored Mar 23, 2024
2 parents 425ffa4 + 2490762 commit 82dd24d
Show file tree
Hide file tree
Showing 16 changed files with 1,110 additions and 127 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
VITE_API_KEY: VITE_API_KEY
VITE_AUTH_DOMAIN: VITE_AUTH_DOMAIN
VITE_PROJECT_ID: VITE_PROJECT_ID
VITE_STORAGE_BUCKET: VITE_STORAGE_BUCKET
VITE_MESSAGING_SENDER_ID: VITE_MESSAGING_SENDER_ID
VITE_APP_ID: VITE_APP_ID
VITE_MEASUREMENT_ID: VITE_MEASUREMENT_ID
25 changes: 25 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
index.html,1710039950977,5755e4fa4f2241b3c700f63bd7cd02fcd928006a3d375484e802608539bdf991
vite.svg,1710039950760,d3bbbc44b3ea71906a72bf2ec1a4716903e2e3d9f85a5007205a65d1f12e2923
assets/about-us-icon-be40d6b2.svg,1710039950974,eea1d43f37601818934b99914da18c4bce37bd0f3f8dd29885f4398fd84d5408
assets/aboutus-img-1df82fea.png,1710039950974,1d4ab6671c739d229d99ef931e8fa571726861c77d99ac68f17c77a1d1c268ae
assets/copyright-icon-f4397bbd.svg,1710039950974,924958b9be5737a9fec00036c1b4c990babb84008fc20f8ef94824db72865298
assets/faq-icon-ca61a372.svg,1710039950973,6b9473799f270af4793f59c72f812443d3a8cc43ccbbcd47c8e529ad423962b2
assets/faq-img-c59916f4.png,1710039950974,fbf0451698315a3bd8cf2d048e908efecde6e2f5cd58f2b7c647c0dd5795ae31
assets/favicon-9946c374.svg,1710039950974,1a3004ae1bf6316dce09f22e436dc65b74aca966d2c34ab7a7eaf90c926b7618
assets/giphy-efa563b4.gif,1710039950974,17ce37620480efdd540f0daf13eb83b37f1958b2b4a84fef78c3c569ba15771c
assets/heroImg-85f6609c.png,1710039950974,afe7fc3558dca343cace17f6545da463d7eea32b074c910cc4ad771ff94b17d0
assets/index-5e3139dd.css,1710039950977,1217527a2ff2fd63552c6dfbbffad78c0b40f1b8284d7aa6341afb631c5f665b
assets/index-a81ca41f.js,1710039950977,e27458b5c3026857cff3d5ac02652301a6666b557350e3adbfa43da435eadb3f
assets/lato-latin-400-normal-918b7dc3.woff2,1710039950973,2990f5c9f3528a956aeee43aff4a8b67c5a4dc093516fd9638478b7e799d3d7b
assets/lato-latin-400-normal-fe81ff1d.woff,1710039950974,58f6e49ddbba5962178043cd96e94bb5a79fe06c144c59ded8b34874ff2f5744
assets/lato-latin-700-normal-38bcc2ae.woff,1710039950974,5084fed94976898fb66b284e349f567a392d25d3f58a7a7db6e22e3907ded32e
assets/lato-latin-700-normal-c447dd76.woff2,1710039950974,3e343ea9e3954de3d3846760feaba4863f593712f7158b3c175fc57eeed035ff
assets/lato-latin-ext-400-normal-1c2fc265.woff2,1710039950974,dcb7588bbe6a0d871b8c81b9b08bca651213be2dec3dc8b5f218be2bbd80a4ba
assets/lato-latin-ext-700-normal-4ef7cd3d.woff2,1710039950974,57ea924bfe2fbf0e51cef540f3d7606117e790bfc57054bc6350ae9af0a28d1f
assets/link-img-c06468d9.png,1710039950973,e8fe7535ede9d6b5ef20038bcf5e11e4e05c203b8edfa25cfa45e4d23c652109
assets/share-link-icon-bf114fa1.svg,1710039950974,ee4ee18c0da122d1b2b7754bc70cedbacd58d7a7c6da8c23a9666be9f5d50957
assets/spoonfull-logo-3161b62c.svg,1710039950973,7f9fd06dd7f6a71fd0a747e727ea71a10b7315a59bba0f88664a0d8beef8800e
assets/tut-first-img-9374b15c.png,1710039950974,da642cfef4623ef00632ef9836cab253f1868d3374b0aae36afa9fcf3ed6a11d
assets/tut-second-img-15f42ae2.png,1710039950974,61f9b0fb929c62480bd028a0f09b0e7752f21df387d01d4e5cbc3fa3ef73ef63
assets/tutorial-img1-7d1f8193.png,1710039950974,b2a9472dfd7725290fb52c385aa5c38eb644775277af7484bd5bae15bda02562
assets/welcome-img-c0ec2626.png,1710039950977,bd3345f5fc63a070e2a4d1c61445fa971648dabff58cd1cc76575fc96786625b
2 changes: 2 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
index.html,1710036807838,c1694615ad95f808ef658e9ac7bd8394a2c4f28c918cb8c75a9cec9e34957a55
vite.svg,1696027189514,d3bbbc44b3ea71906a72bf2ec1a4716903e2e3d9f85a5007205a65d1f12e2923
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "spoonfull-bdfae"
}
}
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_SPOONFULL_BDFAE }}'
channelId: live
projectId: spoonfull-bdfae
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
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_SPOONFULL_BDFAE }}'
projectId: spoonfull-bdfae
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit 82dd24d

Please sign in to comment.