Skip to content

Commit b8f1750

Browse files
authored
Create main.yml
1 parent a32e3ac commit b8f1750

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to Firebase Hosting
2+
on:
3+
push:
4+
branches:
5+
- main # Set this to your default branch
6+
7+
jobs:
8+
build_and_deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Install Dependencies
15+
run: npm install # Or yarn install
16+
17+
- name: Build Project
18+
run: npm run build
19+
20+
- name: Deploy to Firebase
21+
uses: FirebaseExtended/action-hosting-deploy@v0
22+
with:
23+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
24+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NODOUBTZ }}'
25+
channelId: live
26+
projectId: gtm-kqqwvx2-zgi2z

0 commit comments

Comments
 (0)