Skip to content

Commit adf8253

Browse files
committed
CI/CD
1 parent 3ba894c commit adf8253

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to Firebase Hosting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'npm'
20+
21+
- name: Install Dependencies
22+
run: npm ci
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Deploy to Firebase Hosting
31+
uses: FirebaseExtended/action-hosting-deploy@v0
32+
with:
33+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
34+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PYRAMID_S }}'
35+
projectId: pyramid-s

0 commit comments

Comments
 (0)