File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed
Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -67,19 +67,19 @@ jobs:
6767 echo "${{ secrets.SAMPLE_FIREBASE_UPLOAD_CREDENTIALS }}" | base64 --decode | jq > ${{ github.workspace }}/sample_app/ios/firebase-service-account.json
6868
6969 - name : Build and release
70+ working-directory : sample_app/ios
7071 env :
7172 GOOGLE_APPLICATION_CREDENTIALS : " ${{ github.workspace }}/sample_app/ios/firebase-service-account.json"
7273 MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
7374 APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
7475 run : |
75- flutter build ios --no-codesign
76- cd ios
7776 bundle exec fastlane deploy_to_firebase
7877
7978 build_and_deploy_android :
8079 runs-on : ubuntu-latest
8180 timeout-minutes : 15
82- if : ${{ github.event_name == 'push' || inputs.build_android == true }}
81+ # if: ${{ github.event_name == 'push' || inputs.build_android == true }}
82+ if : false
8383 steps :
8484 - name : Install Bot SSH Key
8585 uses :
webfactory/[email protected]
Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ lane :match_me do
2020 )
2121end
2222
23+ lane :build do |options |
24+ sign_enabled = options [ :sign_enabled ] || false
25+ sign_param = sign_enabled ? '' : '--no-codesign'
26+
27+ config_only = options [ :config_only ] || false
28+ config_param = config_only ? '--config-only' : ''
29+
30+ sh_on_root ( command : "flutter build ios --flavor #{ options [ :flavor ] } --suppress-analytics --release #{ sign_param } #{ config_param } " )
31+ end
32+
2333desc "Installs all Certs and Profiles necessary for appstore"
2434lane :match_appstore do
2535 match (
3545lane :deploy_to_firebase do
3646 match_me
3747
38- gym (
39- workspace : "./Runner.xcworkspace" ,
40- scheme : "Runner" ,
41- export_method : "ad-hoc" ,
42- export_options : "./fastlane/beta_gym_export_options.plist" ,
43- silent : true ,
44- clean : true ,
45- include_symbols : true ,
46- output_directory : "./dist"
48+ build (
49+ sign_enabled : true ,
50+ )
51+
52+ build_app (
53+ scheme : "Runner" ,
54+ export_method : "ad-hoc" ,
55+ silent : true ,
56+ clean : true ,
57+ include_symbols : true ,
58+ output_directory : './dist' ,
4759 )
4860
4961 message = changelog_from_git_commits ( commits_count : 10 )
You can’t perform that action at this time.
0 commit comments