Skip to content

Refactor index in map #64

Refactor index in map

Refactor index in map #64

Workflow file for this run

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