Skip to content

Commit 39355e1

Browse files
committed
feat: Add firebase deploys
1 parent 044477d commit 39355e1

4 files changed

Lines changed: 42 additions & 34 deletions

File tree

.github/workflows/firebase-deploy.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 merge
5+
on:
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: npm ci && npm run build
15+
- uses: FirebaseExtended/action-hosting-deploy@v0
16+
with:
17+
repoToken: ${{ secrets.GITHUB_TOKEN }}
18+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_REACT_VITE_TAILWIND_TEMPLATE }}
19+
channelId: live
20+
projectId: react-vite-tailwind-template
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_REACT_VITE_TAILWIND_TEMPLATE }}
21+
projectId: react-vite-tailwind-template

tsconfig.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/app/components/footer/footer.tsx","./src/app/components/footer/index.ts","./src/app/components/header/header.tsx","./src/app/components/header/index.ts","./src/app/pages/about/about.tsx","./src/app/pages/about/index.ts","./src/app/pages/contact/contact.tsx","./src/app/pages/contact/index.ts","./src/app/pages/home/home.tsx","./src/app/pages/home/index.ts","./src/app/pages/services/services.tsx","./src/app/pages/services/index.ts"],"version":"5.9.3"}

0 commit comments

Comments
 (0)