Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Firebase workflow files #24

Merged
merged 2 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "bookat-87c98"
}
}
2 changes: 1 addition & 1 deletion .github/workflow/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "14"
node-version: "18"

- name: Install Dependencies
run: npm install
Expand Down
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:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BOOKAT_87C98 }}'
channelId: live
projectId: bookat-87c98
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@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BOOKAT_87C98 }}'
projectId: bookat-87c98
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
8 changes: 6 additions & 2 deletions src/pages/driver/addInfo/AddPersonlInfoPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import Navbar from "../../../components/driver/common/Navbar"
import DriverFooter from "../../../components/driver/common/DriverFooter"
import AddPersonalInfo from "../../../components/driver/AddPersonalAndVehicleInfo/AddPersonalInfo"

function AddPersonlInfoPage() {
return (
<>
<div className="bg-gray-100">
<Navbar />
<AddPersonalInfo />
</>
<DriverFooter />
</div>
)
}

Expand Down
8 changes: 6 additions & 2 deletions src/pages/driver/addInfo/AddVehicleInfoPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import Navbar from "../../../components/driver/common/Navbar"
import DriverFooter from "../../../components/driver/common/DriverFooter"
import AddVehicleInfo from '../../../components/driver/AddPersonalAndVehicleInfo/AddVehicleInfo'

function AddVehicleInfoPage() {
return (
<>
<div className="bg-gray-100">
<Navbar />
<AddVehicleInfo />
</>
<DriverFooter />
</div>
)
}

Expand Down
Loading