Skip to content

Commit 1ff375a

Browse files
committed
Add github pages deploy
1 parent 8a9139a commit 1ff375a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/Deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: 'npm'
21+
cache-dependency-path: '**/package-lock.json'
22+
23+
- run: npm ci --prefer-offline
24+
25+
- name: Install and Build 🔧
26+
run: |
27+
npm ci --prefer-offline
28+
npm run build
29+
30+
- name: Deploy 🚀
31+
uses: JamesIves/github-pages-deploy-action@v4
32+
with:
33+
branch: gh-pages
34+
folder: dist

0 commit comments

Comments
 (0)