-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.01 KB
/
Copy pathdeploy-hacklytics.yml
File metadata and controls
42 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Hacklytics to Firebase Hosting
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: write
checks: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: "22.23.1"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build Hacklytics 2027
run: pnpm turbo run build --filter=hacklytics2027
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT_WEBSITE }}
projectId: dsgt-website
channelId: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'live' }}
target: hacklytics
entryPoint: "."