-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (41 loc) · 1.43 KB
/
build.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
name: Run build for admin panel and website
on:
push:
jobs:
admin-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Set up environment and build for admin
env:
NEXT_PUBLIC_ADMIN_BASE_URL: ${{ secrets.ADMIN_BASE_URL }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
NEXT_PUBLIC_JWT_SECRET: ${{ secrets.JWT_SECRET }}
NEXT_PUBLIC_CRYPTO_SECRET: ${{ secrets.CRYPTO_SECRET }}
NEXT_PUBLIC_AWS_REGION: ${{ secrets.AWS_REGION }}
NEXT_PUBLIC_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
NEXT_PUBLIC_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
NEXT_PUBLIC_SUPABASE_STORAGE_URL: ${{ secrets.SUPABASE_STORAGE_URL }}
run: |
cd admin
npm install
npm run build
website-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Set up environment and build for website
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
run: |
cd website
npm install
npm run build