Skip to content

Commit

Permalink
👷 添加自动部署
Browse files Browse the repository at this point in the history
  • Loading branch information
WOSHIZHAZHA120 committed May 8, 2024
1 parent 4811630 commit 3b683c1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 部署

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: latest
run_install: true

- run: pnpm run build

- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

0 comments on commit 3b683c1

Please sign in to comment.