From 699be4125bc1265aee15d3820506369c7a463f0a Mon Sep 17 00:00:00 2001 From: VillagerTom Date: Wed, 28 Feb 2024 16:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=89=88=E6=9C=AC=E5=8F=B7=E4=B8=AD?= =?UTF-8?q?=E7=9A=84alpha=E6=94=B9=E4=B8=BAbeta;=20=E5=8A=A0=E5=9B=9E?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E5=88=A0=E5=8E=BB=E7=9A=84=E2=80=9Cv?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index af155cc9..231c61f5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - 'alpha' + - 'main' paths-ignore: - '**.md' - '**.txt' @@ -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" @@ -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 @@ -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 @@ -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 }}"