-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 756 Bytes
/
Copy pathdeploy.yml
File metadata and controls
36 lines (31 loc) · 756 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 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@v5
with:
persist-credentials: false
- name: Setup Node 🏗
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
branch: gh-pages
folder: build
CLEAN: true # Automatically remove deleted files from the deploy branch