Skip to content

Commit f081b14

Browse files
committed
🔧 修复CI发布流程: upload-github-release缺少checkout步骤
🚀 重大修复: - 为upload-github-release job添加actions/checkout@v4步骤 - 修复'fatal: not a git repository'错误 - 确保gh命令可以正确识别仓库信息 📦 技术实现: - 添加fetch-depth: 0获取完整git历史和tags - 保持job的continue-on-error容错机制 - 确保gh release命令正常工作 🎯 修复验证: - ✅ checkout步骤在artifact下载前执行 - ✅ git历史和tags信息完整获取 - ✅ gh命令环境准备就绪 📊 状态: CI发布流程缺陷修复完成,可重新触发v1.0.5发布
1 parent 50b1b76 commit f081b14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ jobs:
149149
permissions:
150150
contents: write # 允许上传文件到 Release
151151
steps:
152+
- name: Checkout code
153+
uses: actions/checkout@v4
154+
with:
155+
fetch-depth: 0 # 获取完整的git历史,包括tags
156+
152157
- name: Download VSIX artifact
153158
uses: actions/download-artifact@v4
154159
with:

0 commit comments

Comments
 (0)