mirror of
https://git.bjxgj.com/xgj/xgj-actions.git
synced 2025-10-14 13:33:37 +08:00
feat: 更新 Web 项目发布构建的 GitHub Action,确保版本号输出统一添加 v 前缀,优化版本获取逻辑,更新文档以反映新格式和使用示例。
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user