Merge pull request '优化CI流程:在合并前提供预览链接' (#10) from dev into main
All checks were successful
deploying-doc / build-and-deploy (push) Successful in 2m48s
All checks were successful
deploying-doc / build-and-deploy (push) Successful in 2m48s
Reviewed-on: #10
This commit is contained in:
commit
d983d076f5
@ -42,6 +42,7 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: 🚚 Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -67,8 +68,26 @@ jobs:
|
||||
run: pnpm run docs:build
|
||||
|
||||
- name: 🚀 Deploy to Cloudflare Pages
|
||||
id: deploy
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-reference
|
||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-reference
|
||||
|
||||
- name: 💬 Comment on PR
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const deployUrl = process.env.DEPLOY_URL;
|
||||
const commentBody = `🚀 Documentation preview deployed to: [${deployUrl}](${deployUrl})`;
|
||||
|
||||
github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
body: commentBody
|
||||
});
|
||||
env:
|
||||
DEPLOY_URL: ${{ steps.deploy.outputs.deployment-url }}
|
12
package.json
12
package.json
@ -11,17 +11,17 @@
|
||||
"docs:update-package": "pnpm dlx vp-update"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.19",
|
||||
"sass-embedded": "^1.83.4",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.21",
|
||||
"sass-embedded": "^1.87.0",
|
||||
"vue": "^3.5.13",
|
||||
"vuepress": "2.0.0-rc.19",
|
||||
"vuepress-theme-hope": "2.0.0-rc.68"
|
||||
"vuepress": "2.0.0-rc.21",
|
||||
"vuepress-theme-hope": "2.0.0-rc.82"
|
||||
},
|
||||
"volta": {
|
||||
"node": "22.11.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress/plugin-slimsearch": "2.0.0-rc.61",
|
||||
"katex": "^0.16.20"
|
||||
"@vuepress/plugin-slimsearch": "2.0.0-rc.94",
|
||||
"katex": "^0.16.22"
|
||||
}
|
||||
}
|
||||
|
2439
pnpm-lock.yaml
generated
2439
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -7,13 +7,13 @@ export default hopeTheme({
|
||||
|
||||
author: {
|
||||
name: "荆棘鸟文学社",
|
||||
url: "https://github.com/szhhwh/",
|
||||
url: "https://gitea.lionhao.top/jjnwxs/",
|
||||
},
|
||||
|
||||
logo: "/logo.png",
|
||||
logoDark: '/logo-dark.png',
|
||||
|
||||
repo: "szhhwh/jingji_TSreference_vue",
|
||||
repo: "https://gitea.lionhao.top/jjnwxs/jingji_reference/",
|
||||
|
||||
docsDir: "src",
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user