Skip to content

Commit

Permalink
feat: support preview
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Apr 7, 2024
1 parent 79418ba commit 294d906
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/preview-site.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# 文件名建议统一为 preview-publish
# 应用 preview.yml 的 demo
name: preview site
on: [pull_request]
on:
pull_request:
branches: [main]

jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
Expand All @@ -23,7 +28,7 @@ jobs:
${{ runner.os }}-
- run: pnpm install
- name: build-site
run: pnpm run site:preview
run: npm run site:preview
call-preview:
uses: Tencent/tdesign/.github/workflows/preview.yml@main
secrets:
Expand Down

0 comments on commit 294d906

Please sign in to comment.