-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (32 loc) · 1014 Bytes
/
deploy.yml
File metadata and controls
37 lines (32 loc) · 1014 Bytes
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
name: Build and Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Pages 📃
uses: actions/configure-pages@v2
- name: Install Node 🧰
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install and Build 🔧
run: |
npm install
NODE_OPTIONS=--max_old_space_size=4096 npm run build
- name: Upload artifact ⬆️
uses: actions/upload-artifact@v4
with:
path: './dist'
- name: Deploy to GitHub Pages 🚀
env:
GITHUB_TOKEN: ${{ secrets.secrets.GA_ID }}
id: deployment
uses: actions/deploy-pages@v1