Skip to content

Commit dfa80f8

Browse files
committed
polish android release workflow
1 parent e13fc17 commit dfa80f8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/android_build_and_deploy.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Deploy Flutter App to Google Playconsole
22

33
on:
44
push:
5-
branches:
6-
- beta
7-
- cl/android-store-publish
5+
branches: [ master, beta ]
6+
tags:
7+
- "*"
8+
pull_request:
9+
branches: [ master, beta ]
810

911
# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
1012
# triggered (ref https://stackoverflow.com/a/72408109)
@@ -52,6 +54,8 @@ jobs:
5254
ls app/build/app/outputs/bundle/playRelease
5355
5456
- name: Deploy to Google Play (Beta)
57+
# Only deploy if we are on beta
58+
if: github.ref == 'refs/heads/beta'
5559
uses: r0adkll/upload-google-play@v1
5660
with:
5761
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_JSON }}

0 commit comments

Comments
 (0)