File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy MainWeb to Firebase Hosting
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ permissions :
10+ contents : read
11+ pull-requests : write
12+ checks : write
13+
14+ jobs :
15+ build_and_deploy :
16+ runs-on : ubuntu-latest
17+ defaults :
18+ run :
19+ working-directory : sites/mainweb
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : 20
28+
29+ - name : Install pnpm
30+ run : npm install -g pnpm
31+
32+ - name : Install dependencies
33+ run : pnpm install
34+
35+ - name : Build
36+ run : pnpm build
37+
38+ - name : Deploy to Firebase Hosting
39+ uses : FirebaseExtended/action-hosting-deploy@v0
40+ with :
41+ repoToken : ${{ secrets.GITHUB_TOKEN }}
42+ firebaseServiceAccount : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT }}
43+ projectId : dsgt-website
44+ channelId : ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'live' }}
45+ entryPoint : sites/mainweb
You can’t perform that action at this time.
0 commit comments