-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbitrise.yml
154 lines (154 loc) Β· 5.31 KB
/
bitrise.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
workflows:
build:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- certificate-and-profile-installer@1: {}
- script@1:
inputs:
- content: bash $BITRISE_SOURCE_DIR/ci/latest.sh beta
title: Get latest version
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/bitrise_git_data.sh
title: Get git data
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/prebuild.sh
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
- is_debug: true
title: Prebuild
- cache-pull@2: {}
- flutter-installer@0:
inputs:
- installation_bundle_url: $FLUTTER_ARCHIVE_URL
- version: stable
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/bitrise_sksl.sh
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
title: compute sksl shaders
- flutter-build@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- ios_additional_params: --no-codesign --release --build-number $GIT_CLONE_COMMIT_COUNT $SKSL_ARGUMENT
- android_additional_params: --release --build-number $GIT_CLONE_COMMIT_COUNT --target-platform android-arm64
- cache-push@2: {}
after_run: []
deploy-android:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- certificate-and-profile-installer@1: {}
- script@1:
inputs:
- content: bash $BITRISE_SOURCE_DIR/ci/latest.sh beta
title: Get latest version
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/bitrise_git_data.sh
title: Get git data
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/prebuild.sh
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
- is_debug: true
title: Prebuild
- cache-pull@2: {}
- flutter-installer@0:
inputs:
- installation_bundle_url: $FLUTTER_ARCHIVE_URL
- version: stable
- flutter-build@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- ios_additional_params: --no-codesign --release --build-number $GIT_CLONE_COMMIT_COUNT $SKSL_ARGUMENT
- platform: android
- android_output_type: appbundle
- android_additional_params: --release --build-number $GIT_CLONE_COMMIT_COUNT --target-platform android-arm64
- google-play-deploy@3:
inputs:
- service_account_json_key_path: $BITRISEIO_SERVICE_ACCOUNT_URL
- retry_without_sending_to_review: "true"
- package_name: com.gaetanschwartz.swiss_travel
- cache-push@2: {}
after_run: []
deploy-ios:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- certificate-and-profile-installer@1: {}
- script@1:
inputs:
- content: bash ci/latest.sh beta
title: Get latest version
- cache-pull@2: {}
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/bitrise_git_data.sh
title: Get git data
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/prebuild.sh
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
- is_debug: true
title: Prebuild
- flutter-installer@0:
inputs:
- installation_bundle_url: $FLUTTER_ARCHIVE_URL
- script-runner@0:
inputs:
- file_path: $BITRISE_SOURCE_DIR/ci/bitrise_sksl.sh
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
title: compute sksl shaders
- script@1:
inputs:
- working_dir: $BITRISE_FLUTTER_PROJECT_LOCATION
- content: |-
#!/usr/bin/env bash
set -ex
set -o pipefail
flutter build ios --config-only --no-codesign --release --build-number $COMMIT_NUMBER $SKSL_ARGUMENT
title: flutter build ios
inputs:
- distribution_method: app-store
- export_development_team: Y2PPW6ETTC
- deploy-to-itunesconnect-application-loader@1:
inputs:
- password: $APPLE_PASSWORD
- app_password: $APPLE_2FA
- itunescon_user: $APPLE_EMAIL
- cache-push@2: {}
after_run:
- deploy-android
app:
envs:
- opts:
is_expand: false
DO_COMPUTE_SKSL_SHADERS: false
- opts:
is_expand: false
BITRISE_FLUTTER_PROJECT_LOCATION: app/
- opts:
is_expand: false
BITRISE_PROJECT_PATH: app/ios/Runner.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: Runner
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
trigger_map:
- push_branch: deploy
workflow: deploy-ios
meta:
bitrise.io:
stack: osx-xcode-14.2.x-ventura
machine_type_id: g2-m1.4core