-
-
Notifications
You must be signed in to change notification settings - Fork 89
43 lines (37 loc) Β· 1.06 KB
/
deploy.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
on:
push:
branches:
- main
paths:
- "src/**"
- "public/**"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code π
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download Emoji Kitchen Metadata πΎ
uses: xsalazar/actions/downloader@master
with:
url: "https://raw.githubusercontent.com/xsalazar/emoji-kitchen-backend/main/app/metadata.json"
filename: "src/Components/metadata.json"
- name: Setup Node π
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install and Build π§
run: |
export NODE_OPTIONS="--max_old_space_size=8192"
npm install
npm run build
- name: Deploy π
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
CLEAN: true # Automatically remove deleted files from the deploy branch