Skip to content

Commit

Permalink
Add Firebase to the project (#19)
Browse files Browse the repository at this point in the history
* feat: add firebase to the project

* feat: remove old workflows from .github

* feat: modify firebase-hosting-pull-request.yml to apply .env
  • Loading branch information
miku0129 committed Mar 10, 2024
1 parent 0c64812 commit 688d374
Show file tree
Hide file tree
Showing 11 changed files with 9,969 additions and 90 deletions.
15 changes: 15 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
asset-manifest.json,1693163866439,2598dd3035d2713b190592db7a12ac9cd5a3ea60e795906ab5dd1954a17ad252
manifest.json,1693163851509,0958a5e0c831126100c8c2d06a6bbaa665a3900f21aaff4130238a6f5a113aa1
robots.txt,1693163851511,2544ca049f223a42bff01f72ad930a5edba75bbb7199d0f8430a02ff5aca16ec
static/css/main.cef43bc3.css,1693163866445,011cd229422a2a492440852cfe93657b08b941eb03bb566b1795fd1af9cefcc7
favicon.ico,1693163851502,778ad146fca272af3d59f5cc9dd943d80ad7ab05398bc09e57c139877a7bbaa0
static/css/main.cef43bc3.css.map,1693163866446,bc33ddf571ed378e9521688977666c35a0586792012d30bb903e0887b87da475
index.html,1693163866439,1703b7a5e1a4833c724438875f1de8017864089472d697fd96dc1d31d81f485a
static/js/main.7b24aa8b.js.LICENSE.txt,1693163866445,56f2c874d1798956e642915448f497c7fa8244b33e6a1c0f0aed31c6c302e9e6
static/js/787.cf7b3b87.chunk.js.map,1693163866447,5db799b7966db93de23914dbf091029f62eff2c0676b01b0ee88509f02eb8bde
logo192.png,1693163851505,5edbb84a555c41e40ad04932cd4f45ba1b49b7fa58c5171be7c4d5ed990c230f
static/js/787.cf7b3b87.chunk.js,1693163866446,38e98058a6bb64253fd82346626b45a467002640be6dea94a821983eae93266d
logo512.png,1693163851506,64da9d1672b935d6d867f8aaaa8103372a3e4a840a15a2b7585ed42319449b9e
static/media/facebook-svgrepo-com.caeb0adc042294372ec34d2fa978032b.svg,1693163866445,4ea127e7546667e94f3a4d8336eab4a4e27f474d2e00f7f26021c34f6da272a9
static/js/main.7b24aa8b.js,1693163866446,37c0922d26ebc1e3a27a3be78aaaa58344ef19e72583ef3a319f2c6c8d5f7e32
static/js/main.7b24aa8b.js.map,1693163866446,526ac3f1cf21d74e8cf7e0667b4592724ee2c3d3dfdedb88ba139c3238b696f5
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "jardinieresmasquees"
}
}
34 changes: 0 additions & 34 deletions .github/workflows/aws-s3-hosting-push.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/build-pull-request.yml

This file was deleted.

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@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_JARDINIERESMASQUEES }}'
channelId: live
projectId: jardinieresmasquees
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.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 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@v2
- run: |
touch .env
echo "${{ secrets.FIREBASE_CLIENT_ENV }}" >> .env
npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_JARDINIERESMASQUEES }}'
projectId: jardinieresmasquees
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit 688d374

Please sign in to comment.