Skip to content

Commit 0f6c3df

Browse files
committed
add deployment action
1 parent 0238892 commit 0f6c3df

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "20"
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Build
26+
run: CI='false' npm run build
27+
28+
- name: Deploy to GitHub Pages
29+
uses: JamesIves/[email protected]
30+
with:
31+
branch: gh-pages
32+
folder: build

0 commit comments

Comments
 (0)