File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 11.DS_Store
22. *
3+ ! .github
34! .gitignore
You can’t perform that action at this time.
0 commit comments