-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.3 KB
/
deploy-prod.yml
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
43
44
name: Deploy to Production
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment:
name: production
url: https://the-tricktionary.com
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci --prefer-offline
- run: npm run codegen
- run: npm run build
env:
VITE_COMMIT_REF: ${{ github.sha }}
VITE_CONTEXT: production
VITE_GRAPHQL_URL: https://api.the-tricktionary.com
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROJECT_5641153190345267944 }}'
channelId: live
projectId: project-5641153190345267944
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: ./dist
version_prefix: tricktionary-web-v4@