Skip to content

Commit

Permalink
feat: switch to beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jei committed May 15, 2020
1 parent a0bd184 commit c025a41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Android alpha version
name: Release Android beta version
on:
push:
branches:
Expand Down Expand Up @@ -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/[email protected]
with:
lane: 'alpha'
lane: 'beta'
subdirectory: 'android'

############################################
Expand All @@ -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
Expand Down
13 changes: 12 additions & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit c025a41

Please sign in to comment.