Skip to content

Commit 90169dc

Browse files
committed
输出版本号
1 parent 6c580b1 commit 90169dc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ jobs:
3232
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
3333
# Validate manual input version format
3434
if ! [[ "${{ github.event.inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]]; then
35-
echo "Error: Version must follow semantic versioning (e.g., 1.2.3, 1.2.3-alpha, 1.2.3+build.123)"
35+
echo "❌ 错误:版本格式必须符合语义化版本规范 (例如: 1.2.3, 1.2.3-alpha, 1.2.3+build.123)"
3636
exit 1
3737
fi
3838
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
39+
echo "✨ 手动触发构建,版本号:${{ github.event.inputs.version }}"
3940
else
4041
# Extract version from tag name (remove 'v' prefix)
4142
VERSION=${GITHUB_REF#refs/tags/v}
4243
echo "version=${VERSION}" >> $GITHUB_OUTPUT
44+
echo "🏷️ 从 tag 触发构建,版本号:${VERSION}"
4345
fi
4446
4547
build_web_map_editor:
@@ -350,8 +352,6 @@ jobs:
350352
pick_files: '["BetterGI"]'
351353
version_name: ${{ needs.validate.outputs.version }}
352354
upload_token: ${{ secrets.MirrorChyanUploadToken }}
353-
auto_channel: false
354-
channel: beta
355355

356356
- name: Upload Install.exe
357357
uses: MirrorChyan/uploading-action@v1
@@ -363,7 +363,5 @@ jobs:
363363
extra_zip: true
364364
version_name: ${{ needs.validate.outputs.version }}
365365
upload_token: ${{ secrets.MirrorChyanUploadToken }}
366-
auto_channel: false
367-
channel: beta
368366
os: win
369367
arch: x64

0 commit comments

Comments
 (0)