File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 77 description : " Branch to deploy"
88 required : true
99 default : " main"
10+ release_type :
11+ description : " Release type"
12+ required : true
13+ default : " internal"
14+ type : choice
15+ options :
16+ - internal
17+ - production
1018
1119jobs :
1220 deploy_for_android :
1321 runs-on : ubuntu-latest
22+ env :
23+ RELEASE_TYPE : ${{ github.event.inputs.release_type }}
1424 steps :
1525 - name : Checkout repository
1626 uses : actions/checkout@v2
5868 - name : Set up fastlane
5969 run : (cd open_wearable/android && bundle install)
6070
61- - name : Build & deploy Android release
62- run : (cd open_wearable/android && bundle exec fastlane internal_deploy)
71+ - name : Build & deploy Android (Internal)
72+ if : ${{ github.event.inputs.release_type == 'internal' }}
73+ run : |
74+ cd open_wearable/android
75+ bundle exec fastlane internal_deploy
76+ env :
77+ OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD : ${{ secrets.OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD }}
78+
79+ - name : Build & deploy Android (Production)
80+ if : ${{ github.event.inputs.release_type == 'production' }}
81+ run : |
82+ cd open_wearable/android
83+ bundle exec fastlane production_deploy
6384 env :
6485 OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD : ${{ secrets.OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments