-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.57 KB
/
build_and_test.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
45
46
47
48
49
50
51
52
53
54
55
name: Staging deploy
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
step: ['lint:check', 'test', 'build']
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run ${{ matrix.step }}
deploy-to-github:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/develop' }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
npm ci
npm run build
env:
# FOR BUILD
NODE_OPTIONS: --max-old-space-size=32768
VITE_NODE_ENV: develop
VITE_SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_SENTRY_RELEASE: ${{ github.sha }}
VITE_SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
VITE_SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
VITE_SENTRY_DSN_PUBLIC_KEY: ${{ secrets.SENTRY_DSN_PUBLIC_KEY }}
VITE_SENTRY_DSN_PROJECT_URI: ${{ secrets.SENTRY_DSN_PROJECT_URI }}
VITE_SENTRY_DSN_PROJECT_ID: ${{ secrets.SENTRY_DSN_PROJECT_ID }}
VITE_GITHUB_HASH: ${{ github.sha }}
VITE_ARWEAVE_HOST: ${{ vars.ARWEAVE_HOST }}
VITE_ARNS_SERVICE_API: ${{ vars.ARNS_SERVICE_API }}
- name: Add CNAME Record
run: |
echo ${{ vars.DOMAIN_NAME }} > dist/CNAME
cp ./404.html ./dist
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist