Skip to content

Commit c5246d9

Browse files
committed
test ios
1 parent a811081 commit c5246d9

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/build_nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

sample_app/ios/fastlane/Fastfile

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ lane :match_me do
2020
)
2121
end
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+
2333
desc "Installs all Certs and Profiles necessary for appstore"
2434
lane :match_appstore do
2535
match(
@@ -35,15 +45,17 @@ end
3545
lane :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)

0 commit comments

Comments
 (0)