Skip to content

Commit

Permalink
Merge pull request #24 from MuhammadAslam-K/aslam-dev
Browse files Browse the repository at this point in the history
Add Firebase workflow files
  • Loading branch information
MuhammadAslam-K authored Nov 12, 2023
2 parents 9fbab48 + 6c8f699 commit cfbf196
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 5 deletions.
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

0 comments on commit cfbf196

Please sign in to comment.