ci(docs): 设置完整检出以支持VuePress部署
设置 actions/checkout 的 fetch-depth 为 0,确保检出完整的 Git 历史记录,这是 vuepress-deploy 操作正确生成页面版本信息所必需的。同时移除配置文件中无关的空行。
This commit is contained in:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -6,6 +6,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: vuepress-deploy
|
||||
uses: jenkey2011/vuepress-deploy@master
|
||||
|
||||
@@ -33,7 +33,6 @@ export default defineConfig({
|
||||
{ icon: 'github', link: 'https://github.com/anghunk/cwd' },
|
||||
{ icon: 'discord', link: 'https://discord.gg/VahC3r7t' },
|
||||
],
|
||||
|
||||
lastUpdated: true,
|
||||
lastUpdatedText: '最后更新于',
|
||||
footer: {
|
||||
|
||||
3
docs/public/cwd.js
Normal file
3
docs/public/cwd.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user