forked from bussmann-it/ionic-conference-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
113 lines (113 loc) · 3 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
---
format_version: 1.3.1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
# iOS
- BITRISE_SCHEME: Ionic Conference
opts:
is_expand: true
workflows:
_ci_finish:
steps:
- deploy-to-bitrise-io:
run_if: '{{getenv "BITRISE_BUILD_URL" | ne ""}}'
_ci_setup:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
ci-ios:
before_run:
- _ci_setup
after_run:
- build-ios
- _ci_finish
steps:
ci-android:
before_run:
- _ci_setup
after_run:
- build-android
- _ci_finish
steps:
build-ios:
steps:
- git::https://github.com/bussmann-it/steps-ionic.git@master:
title: Ionic Build
inputs:
- build_for_platform: ios
- cordova_version: '7'
- ionic_version: '3'
- ios_provisioning_style: Manual
- build_parameters: "--release --prod"
- recreate-user-schemes:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- certificate-and-profile-installer: {}
- xcode-archive:
inputs:
- compile_bitcode: 'no'
- configuration: Release
- force_team_id: 1A234BCD56
- force_code_sign_identity: iPhone Distribution
- force_provisioning_profile: a12345b6-c789-012d-34e5-f6ab7c89012d
- output_tool: xcodebuild
deploy-ios:
steps:
- deploy-to-itunesconnect-deliver:
inputs:
- itunescon_user: bitrise@apple.com
- password: Password
- app_id: '3333333333'
before_run:
- _ci_setup
- build-ios
after_run:
- _ci_finish
build-android:
steps:
- git::https://github.com/bussmann-it/steps-ionic.git@master:
title: Ionic Build
inputs:
- build_for_platform: android
- cordova_version: '7'
- ionic_version: '3'
- build_parameters: "--release --prod"
# We need this because we're waiting for this PR: https://github.com/bitrise-steplib/steps-sign-apk/pull/24
# Without merge we can not sign multiple APK files in one step
- git::https://github.com/bussmann-it/steps-sign-apk.git@master:
title: Sign APKs
- script:
title: Copy the signed APKs to bitrise.io deploy folder
inputs:
- content: |-
#!/bin/bash
set -ex
#
(IFS="|"; cp ${BITRISE_APK_PATH} "${BITRISE_DEPLOY_DIR}")
before_run:
after_run:
deploy-android:
before_run:
- _ci_setup
- build-android
after_run:
- _ci_finish
steps:
- google-play-deploy@1.1.0:
inputs:
- service_account_json_key_path: https://.../a123bcd4e5f6.json
- package_name: io.ionic.conferenceapp
- apk_path: "$BITRISE_APK_PATH"
- track: beta
- whatsnews_dir: ''
- service_account_email: ''
- key_file_path: ''
trigger_map:
- tag: "*"
workflow: deploy-ios
# workflow: deploy-android
- push_branch: master
workflow: ci-ios
# workflow: ci-android