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

Commit 0be2435

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 0be2435

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/deploy.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
name: GitHub Pages
1+
name: Deploy Pages
22

33
on:
44
push:
55
branches:
66
- main
77

8-
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
12-
138
jobs:
149
deploy:
1510
runs-on: ubuntu-22.04
@@ -48,8 +43,14 @@ jobs:
4843
run: |
4944
pnpm build:docs
5045
51-
- name: 部署到 GitHub Pages
52-
uses: peaceiris/actions-gh-pages@v4
46+
- name: 部署到 Cloudflare Pages
47+
uses: AdrianGonz97/refined-cf-pages-action@v1
5348
with:
54-
github_token: ${{ steps.app-token.outputs.token }}
55-
publish_dir: docs/.vuepress/dist
49+
apiToken: ${{ secrets.CF_TOKEN }}
50+
accountId: ${{ secrets.CF_ID }}
51+
githubToken: ${{ steps.app-token.outputs.token }}
52+
projectName: 'git-neko-kit'
53+
directory: 'docs/.vuepress/dist'
54+
deploymentName: cloudflare-pages
55+
branch: main
56+
wranglerVersion: '3'

0 commit comments

Comments
 (0)