Skip to content

Commit 9518f48

Browse files
author
Jove Zhong
committed
Create deploy.yml
1 parent bce98b4 commit 9518f48

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.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 to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [init_via_manus]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: "16"
17+
cache: "pnpm"
18+
19+
- name: Setup PNPM
20+
uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
23+
24+
- name: Install Dependencies
25+
run: pnpm install
26+
27+
- name: Build
28+
run: pnpm run build
29+
30+
- name: Deploy to GitHub Pages
31+
uses: JamesIves/github-pages-deploy-action@v4
32+
with:
33+
branch: gh-pages
34+
folder: dist

0 commit comments

Comments
 (0)