Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 76f89f6

Browse files
committed
ci(deploy): 将部署目标从 GitHub Pages 更改为 Cloudflare Pages
- 使用 WalshyDev/cf-pages-await@v1 替代 peaceiris/actions-gh-pages@v4 - 添加 Cloudflare 相关配置,包括 apiToken、accountId 和 project - 保留 githubToken 以供使用
1 parent 45ff8a3 commit 76f89f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
run: |
4949
pnpm build:docs
5050
51-
- name: 部署到 GitHub Pages
52-
uses: peaceiris/actions-gh-pages@v4
51+
- name: 部署到 Cloudflare Pages
52+
uses: WalshyDev/cf-pages-await@v1
5353
with:
54-
github_token: ${{ steps.app-token.outputs.token }}
55-
publish_dir: docs/.vuepress/dist
54+
apiToken: ${{ secrets.CF_TOKEN }}
55+
accountId: ${{ secrets.CF_ID }}
56+
project: ${{ split(github.repository, '/')[1] }}
57+
githubToken: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)