From c025a41afa2d5f0a4471778cecd4aa2eb79dcf81 Mon Sep 17 00:00:00 2001 From: Andrea Jonus Date: Fri, 15 May 2020 16:49:37 +1000 Subject: [PATCH] feat: switch to beta version --- .../{alpha_android.yml => beta_android.yml} | 10 +++++----- android/fastlane/Fastfile | 13 ++++++++++++- 2 files changed, 17 insertions(+), 6 deletions(-) rename .github/workflows/{alpha_android.yml => beta_android.yml} (94%) diff --git a/.github/workflows/alpha_android.yml b/.github/workflows/beta_android.yml similarity index 94% rename from .github/workflows/alpha_android.yml rename to .github/workflows/beta_android.yml index 7a11858..416ecd6 100644 --- a/.github/workflows/alpha_android.yml +++ b/.github/workflows/beta_android.yml @@ -1,4 +1,4 @@ -name: Release Android alpha version +name: Release Android beta version on: push: branches: @@ -65,10 +65,10 @@ jobs: ############################################ - name: Build AAB run: flutter build appbundle --build-name=${{ steps.prepare_variables.outputs.build_name }} --build-number=${{ steps.prepare_variables.outputs.build_number }} - - name: Upload to the alpha track on the Play Store + - name: Upload to the beta track on the Play Store uses: maierj/fastlane-action@v1.4.0 with: - lane: 'alpha' + lane: 'beta' subdirectory: 'android' ############################################ @@ -82,8 +82,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - release_name: Alpha ${{ steps.prepare_variables.outputs.release_name }} - tag_name: v${{ steps.prepare_variables.outputs.release_name }}-alpha + release_name: Beta ${{ steps.prepare_variables.outputs.release_name }} + tag_name: v${{ steps.prepare_variables.outputs.release_name }}-beta commitish: ${{ github.sha }} draft: false prerelease: true diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 13f4bc5..525d200 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -16,7 +16,7 @@ default_platform(:android) platform :android do - desc "Submit a new Beta Build to Crashlytics Beta" + desc "Submit a new Alpha Build to Google Play" lane :alpha do # Upload the existing build to the alpha track @@ -26,4 +26,15 @@ platform :android do skip_upload_changelogs: true ) end + + desc "Submit a new Beta Build to Google Play" + lane :beta do + # Upload the existing build to the beta track + + upload_to_play_store( + track: 'beta', + aab: '../build/app/outputs/bundle/release/app-release.aab', + skip_upload_changelogs: true + ) + end end