Skip to content

Commit c132ee7

Browse files
committed
ci: update determine release tag
1 parent 04ae372 commit c132ee7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@ jobs:
7171
- name: Install dependencies
7272
run: npm install
7373

74-
# 获取 tag 的版本类型(仅支持 正式版和beta版
74+
# 获取 tag 的版本类型(仅支持 正式版、alpha和beta版
7575
- name: Determine release tag
7676
id: determine_tag
7777
run: |
7878
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\/\(.*\)/\1/')
79-
if [[ "$TAG" =~ -beta ]]; then
80-
echo "::set-output name=tag::beta"
79+
if [[ "$TAG" =~ -alpha ]]; then
80+
echo "tag=alpha" >> "$GITHUB_OUTPUT"
81+
elif [[ "$TAG" =~ -beta ]]; then
82+
echo "tag=beta" >> "$GITHUB_OUTPUT"
8183
elif [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
82-
echo "::set-output name=tag::latest"
84+
echo "tag=latest" >> "$GITHUB_OUTPUT"
8385
else
8486
echo "Unsupported version detected. Terminating."
8587
exit 1

0 commit comments

Comments
 (0)