File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 1- name : Deploy MainWeb to Firebase Hosting (Preview)
1+ name : Deploy MainWeb to Firebase Hosting
2+
23on :
3- pull_request :
4+ push :
45 branches :
56 - main
7+ pull_request :
68
79permissions :
810 contents : read
911 pull-requests : write
1012 checks : write
1113
1214jobs :
13- build_and_preview :
15+ build_and_deploy :
1416 runs-on : ubuntu-latest
1517 defaults :
1618 run :
1719 working-directory : sites/mainweb
1820
1921 steps :
2022 - uses : actions/checkout@v4
21- - run : pnpm install
22- - run : |
23+
24+ - name : Install dependencies
25+ run : pnpm install
26+
27+ - name : Build & Export
28+ run : |
2329 pnpm build
2430 pnpm export
25- - uses : FirebaseExtended/action-hosting-deploy@v0
31+
32+ - name : Deploy to Firebase Hosting
33+ uses : FirebaseExtended/action-hosting-deploy@v0
2634 with :
2735 repoToken : ${{ secrets.GITHUB_TOKEN }}
2836 firebaseServiceAccount : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT }}
2937 projectId : dsgt-website
30- channelId : pr- ${{ github.event.pull_request.number }}
38+ channelId : ${{ github.event_name == 'pull_request' && format('pr-{0}', github. event.pull_request.number) || 'live' }}
You can’t perform that action at this time.
0 commit comments