Skip to content

Commit 04c742e

Browse files
committed
🐳 chore: 发布 v0.2.0
1 parent c2966f8 commit 04c742e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ jobs:
2020
shell: pwsh
2121
run: |
2222
$tag = $env:GITHUB_REF -replace 'refs/tags/', ''
23-
echo "version=$tag" >> $env:GITHUB_OUTPUT
24-
echo "Version: $tag"
23+
# 去掉 v 前缀(如果有)
24+
$version = $tag -replace '^v', ''
25+
echo "version=$version" >> $env:GITHUB_OUTPUT
26+
echo "tag=$tag" >> $env:GITHUB_OUTPUT
27+
echo "Version: $version (Tag: $tag)"
2528
2629
- name: Read release notes
2730
id: release_notes
@@ -82,7 +85,7 @@ jobs:
8285
uses: softprops/action-gh-release@v1
8386
if: steps.find_file.outputs.found == 'true'
8487
with:
85-
name: Release v${{ steps.get_version.outputs.version }}
88+
name: Release ${{ steps.get_version.outputs.tag }}
8689
body: ${{ steps.release_notes.outputs.body }}
8790
draft: false
8891
prerelease: false

docs/RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [eeb29a8] 🐛 fix: 添加贡献者和问题id等属性,添加自动分类功能
1313

1414
### 🔧 其他
15+
- [c2966f8] 📝 docs: 准备发布 v0.2.0
1516
- [6246a31] 📝 docs: 准备发布 v0.2.0
1617
- [44ca1c8] 📝 docs: 准备发布 v0.2.0
1718
- [7636cb4] 📝 docs: 准备发布 v0.2.0

scripts/release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ git add .
209209

210210
$gitStatus = git status --porcelain
211211
if (-not [string]::IsNullOrWhiteSpace($gitStatus)) {
212-
git commit -m "📝 docs: 准备发布 $TagVersion"
212+
git commit -m "🐳 chore: 发布 $TagVersion"
213213
if ($LASTEXITCODE -ne 0) {
214214
Write-Host "错误: 提交更改失败" -ForegroundColor Red
215215
exit 1

0 commit comments

Comments
 (0)