-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 936 Bytes
/
pages.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
name: Build and deploy to pages
on:
push:
branches:
- develop
- main
- research
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: create env file
run: |
touch .env
echo SUPABASE_URL=${{ secrets.SUPABASE_URL }} >> .env
echo SUPABASE_KEY=${{ secrets.SUPABASE_KEY }} >> .env
- name: Install dependencies and build
env:
GITHUB_ACTIONS_BUILD: true
run: |
npm ci
npm run build:all
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./build
github_token: ${{ secrets.GITHUB_TOKEN }}