Skip to content

Commit

Permalink
Merge pull request #9 from raibove/firebase-deploy
Browse files Browse the repository at this point in the history
configure firebase deploy
  • Loading branch information
raibove authored May 2, 2024
2 parents e79d1a7 + 3c8d01c commit 4e342e9
Show file tree
Hide file tree
Showing 9 changed files with 979 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
index.html,1714624308974,a8125e21b88a0f5eae2e1f1e901837553576e4ffdc225de0a207458e0c34c1cb
assets/index-DtPFaW-C.css,1714624308974,d6cc7171d9594214514548579782d965140c35de0c7eedc1501bae234be614ec
image7.png,1714621884625,6a82882799fb87030c562533fb339655ef16592e8a8fba5a14bf83c3b177e96d
vite.svg,1714449664300,699a02e0e68a579f687d364bbbe7633161244f35af068220aee37b1b33dfb3c7
assets/index-BdqNujxt.js,1714624308974,46179fea39220668cbca5764d312fe84d781701c055519bc3aafe09aaa6ad512
image6.png,1714621884625,eeb9010ac141fddbea0624766918576e0e7a6eaf8fe22459768326ad9a0ae678
image5.png,1714621884622,b88d9eb7d98f5b50400de98e5eaaf20a26334a1ae4e1bc4c5b7a6dd358b2ff3d
image11.png,1714621884523,6b8f2332eb672523f1df3d79b051e4cb95b22c102c750290c334afe185aab927
image8.png,1714621884632,a05c8ca4515722539c8d41440adc06f1434aa280f30d965d88ee49eec89962b4
image9.png,1714621884635,138b93fe955e8de67b5f783deeda92ef9cb2bd418a7848299fefc7b962d290b7
image4.png,1714621884616,0fa183c113e172c6392689ed1cbc9234d291362e1ce3b4764b609a883a0e966c
image3.png,1714621884610,5bd687ea6a09830a8269892047830cd69766fe530d4e6dceb447cc6321117654
image0.png,1714449664283,6ac246d976aa4be9055ec8d159a600b26a4d556f629864915ed210dd07ad8e6f
image10.png,1714621884520,e3e733079ffc543217413c187f90c07a3824c1df9ff4779ecffd7a3bf9802bda
image1.png,1714449664294,086a91015aa5759fea8f51e119824537d02344ff44c3961c5681437408d40a7c
image2.jpg,1714621884603,92e3fb7d35f546589598a3bac409a5dfeeb18b386d237c2df838c77a3a780855
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "fabify-fashion"
}
}
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_FABIFY_FASHION }}
channelId: live
projectId: fabify-fashion
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_FABIFY_FASHION }}
projectId: fabify-fashion
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
node_modules
node_modules
dist
7 changes: 7 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": false,
".write": false
}
}
19 changes: 19 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit 4e342e9

Please sign in to comment.