Skip to content

Commit 7b6b06b

Browse files
committed
ci: deploy
1 parent b965297 commit 7b6b06b

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to Firebase Hosting
2+
3+
on:
4+
push:
5+
branches:
6+
- ywc-20
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18' # Change to your project's Node.js version if needed
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
# If you use yarn instead of npm, replace with: run: yarn install --frozen-lockfile
25+
26+
- name: Build
27+
run: npm run build
28+
# If you use a different build command, replace with your command, e.g.: run: npm run prod
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 }}'
35+
channelId: 'live'
36+
projectId: 'jwc-20-q'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
.*
3+
!.github
34
!.gitignore

0 commit comments

Comments
 (0)