Skip to content

Commit cf83426

Browse files
authored
Merge branch 'main' into burger-menu
2 parents 5537d46 + 7f23f5a commit cf83426

15 files changed

Lines changed: 691 additions & 423 deletions
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to Firebase Hosting on merge
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_deploy:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: my-app
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Build the app
22+
run: npm run build
23+
24+
- name: Deploy to Firebase Hosting
25+
uses: FirebaseExtended/action-hosting-deploy@v0
26+
with:
27+
repoToken: ${{ secrets.GITHUB_TOKEN }}
28+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINDMYNEXTCOURSE }}
29+
channelId: live
30+
projectId: findmynextcourse
31+
entryPoint: my-app
32+
env:
33+
FIREBASE_CLI_PREVIEWS: hostingchannels
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on PR
5+
on: pull_request
6+
permissions:
7+
checks: write
8+
contents: read
9+
pull-requests: write
10+
jobs:
11+
build_and_preview:
12+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: npm ci && npm run build
17+
- uses: FirebaseExtended/action-hosting-deploy@v0
18+
with:
19+
repoToken: ${{ secrets.GITHUB_TOKEN }}
20+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINDMYNEXTCOURSE }}
21+
projectId: findmynextcourse

my-app/package-lock.json

Lines changed: 44 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

my-app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"@xyflow/react": "^12.5.5",
1818
"autoprefixer": "^10.4.21",
1919
"firebase": "^11.5.0",
20+
"fuse.js": "^7.1.0",
2021
"ldrs": "^1.1.6",
22+
"lodash.debounce": "^4.0.8",
2123
"lodash.throttle": "^4.1.1",
2224
"mobx": "^6.13.7",
2325
"mobx-react-lite": "^4.1.0",

0 commit comments

Comments
 (0)