Skip to content

Commit 29fe410

Browse files
author
mnt3710
committed
add: main.yml
1 parent 82efb8d commit 29fe410

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
FrontDeploy:
5+
name: FrontDeploy
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout Repo
9+
uses: actions/checkout@main
10+
- name: setup Node
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: '18'
14+
registry-url: 'https://registry.npmjs.org'
15+
- name: Install Firebase CLI
16+
run: npm install -g firebase-tools
17+
- name: Install Dependencies
18+
run: yarn
19+
- name: Build
20+
run: yarn build
21+
- name: deploy to Firebase Hosting
22+
shell: bash
23+
run: yarn channel-deploy $(echo ${GITHUB_REF#refs/heads/}) --token=${{ secrets.FIREBASE_TOKEN }}

0 commit comments

Comments
 (0)