-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 795 Bytes
/
deploy.yml
File metadata and controls
36 lines (29 loc) · 795 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
name: Build
on:
push:
branches: [main]
env:
NODE_VERSION: "24.x"
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
environment: production
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🤖 Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
- name: 🏗 npm build
run: npm run build
- name: ✅ Validate build output
run: bash scripts/validate-build.sh --skip-build
- name: 🚀 Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4.6.8
with:
branch: gh-pages
folder: _site