feat: 更新 Web 项目发布构建的 GitHub Action,确保版本号输出统一添加 v 前缀,优化版本获取逻辑,更新文档以反映新格式和使用示例。

This commit is contained in:
Lyda
2025-08-20 19:29:45 +08:00
parent da4e1db20d
commit e4063690cd
5 changed files with 53 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ jobs:
- name: 发布(自定义版本文件)
uses: actions/xgj/release-web@main
with:
release-command: "echo '1.2.3' > ./custom-version.txt"
release-command: "echo 'v1.2.3' > ./custom-version.txt"
version-file: "./custom-version.txt"
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git commit --allow-empty -m "release: 1.2.6"
git commit --allow-empty -m "release: v1.2.6"
- name: 发布(基于提交信息)
uses: actions/xgj/release-web@main