Skip to content

Commit 7470e2a

Browse files
feat: add gh-pages deploy process
1 parent f9d5426 commit 7470e2a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy
2+
on: [push]
3+
jobs:
4+
build-and-deploy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
9+
- uses: pnpm/action-setup@v3
10+
with:
11+
version: 8
12+
run_install: |
13+
- recursive: true
14+
args: [--frozen-lockfile, --strict-peer-dependencies]
15+
- args: [--global, gulp, prettier, typescript]
16+
17+
- run: pnpm install
18+
19+
- run: pnpm build
20+
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./dist

0 commit comments

Comments
 (0)