Skip to content

Commit a464d61

Browse files
authored
uuuuuhjhhhhhh
1 parent 00cf62f commit a464d61

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
1-
name: Deploy MainWeb to Firebase Hosting (Preview)
1+
name: Deploy MainWeb to Firebase Hosting
2+
23
on:
3-
pull_request:
4+
push:
45
branches:
56
- main
7+
pull_request:
68

79
permissions:
810
contents: read
911
pull-requests: write
1012
checks: write
1113

1214
jobs:
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' }}

0 commit comments

Comments
 (0)