Skip to content

Commit d507d88

Browse files
authored
Merge pull request #22 from DataScience-GT/main
uhhh
2 parents 628774b + ca58d7a commit d507d88

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)