Skip to content

Commit

Permalink
将版本号中的alpha改为beta; 加回之前删去的“v”
Browse files Browse the repository at this point in the history
  • Loading branch information
VillagerTom committed Feb 28, 2024
1 parent 45cc46d commit 699be41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- 'alpha'
- 'main'
paths-ignore:
- '**.md'
- '**.txt'
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
#RUN_NUMBER=${{ github.run_number }}

# 构建新版本号
NEW_VERSION=$VERSION-alpha.${{ steps.get-first-parent-commit-count.outputs.count }}
NEW_VERSION=$VERSION-beta.${{ steps.get-first-parent-commit-count.outputs.count }}

# 输出新版本号
echo "New version: $NEW_VERSION"
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
run: |
for file in build/app/outputs/flutter-apk/app-*.apk; do
if [[ $file =~ app-(.?*)release.apk ]]; then
new_file_name="build/app/outputs/flutter-apk/Pili-${BASH_REMATCH[1]}${{ needs.update_version.outputs.new_version }}.apk"
new_file_name="build/app/outputs/flutter-apk/Pili-${BASH_REMATCH[1]}v${{ needs.update_version.outputs.new_version }}.apk"
mv "$file" "$new_file_name"
fi
done
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
run: |
DATE=${{ steps.date.outputs.date }}
for file in app.ipa; do
new_file_name="build/Pili-${{ needs.update_version.outputs.new_version }}.ipa"
new_file_name="build/Pili-v${{ needs.update_version.outputs.new_version }}.ipa"
mv "$file" "$new_file_name"
done
Expand Down Expand Up @@ -217,4 +217,4 @@ jobs:
method: sendFile
path: Pilipala-CI/*
parse_mode: Markdown
context: "**Pre-release: ${{ needs.update_version.outputs.new_version }}**\n${{ needs.update_version.outputs.last_commit }}"
context: "*Pre-release: v${{ needs.update_version.outputs.new_version }}*\n${{ needs.update_version.outputs.last_commit }}"

0 comments on commit 699be41

Please sign in to comment.