-
Notifications
You must be signed in to change notification settings - Fork 33
198 lines (198 loc) · 6.48 KB
/
build_android.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
name: Build Android
run-name: >
${{ inputs.deploy_google_play && 'Upload to Google Play' || 'Build' }}
${{ inputs.tag }}
${{ inputs.build_official && '; CoopCycle' || '' }}
${{ inputs.build_official_beta && '; CoopCycle (Beta)' || '' }}
${{ inputs.build_naofood && '; Naofood' || '' }}
${{ inputs.build_kooglof && '; Kooglof' || '' }}
${{ inputs.build_robinfood && '; RobinFood' || '' }}
${{ inputs.build_coursiers_rennais && '; Les Coursiers Rennais' || '' }}
${{ inputs.build_eraman && '; Eraman' || '' }}
${{ inputs.build_sicklo && '; Sicklo' || '' }}
on:
workflow_dispatch:
inputs:
tag:
type: string
description: Build a specific git tag
required: true
deploy_google_play:
description: 'Upload to Google Play'
required: true
type: boolean
default: false
build_official:
description: 'CoopCycle production app'
required: true
type: boolean
build_official_beta:
description: 'CoopCycle beta app'
required: true
type: boolean
build_naofood:
description: 'Naofood app'
required: true
type: boolean
build_kooglof:
description: 'Kooglof app'
required: true
type: boolean
build_robinfood:
description: 'RobinFood app'
required: true
type: boolean
build_coursiers_rennais:
description: 'LCR app'
required: true
type: boolean
build_eraman:
description: 'Eraman app'
required: true
type: boolean
build_sicklo:
description: 'Siclo app'
required: true
type: boolean
jobs:
coopcycle:
if: ${{ inputs.build_official }}
name: Build CoopCycle production app
uses: ./.github/workflows/fastlane_android.yml
secrets: inherit
with:
tag: ${{ inputs.tag }}
deploy_google_play: ${{ inputs.deploy_google_play }}
coopcycle_beta:
if: ${{ inputs.build_official_beta }}
name: Build CoopCycle beta app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: beta
app_name: CoopCycle (Beta)
package_name: fr.coopcycle.beta
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
naofood:
if: ${{ inputs.build_naofood }}
name: Build Naofood app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: naofood
instance_url: https://naofood.coopcycle.org
app_name: Naofood
primary_color: "#f8781f"
package_name: fr.naofood.client
keystore_key_alias: naofood
keystore_key_password_secret: SIGNING_KEY_PASSWORD_NAOFOOD
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
zampate:
if: ${{ inputs.build_zampate }}
name: Build Zampate app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: zampate
instance_url: https://zampate.coopcycle.org
app_name: Zampate
primary_color: "#d02e26"
package_name: fr.coopcycle.zampate
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
kooglof:
if: ${{ inputs.build_kooglof }}
name: Build Kooglof app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: kooglof
instance_url: https://kooglof.coopcycle.org
app_name: Kooglof
primary_color: "#b4434e"
package_name: fr.coopcycle.kooglof
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
robinfood:
if: ${{ inputs.build_robinfood }}
name: Build RobinFood app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: robinfood
instance_url: https://robinfood.coopcycle.org
app_name: Robin Food
primary_color: "#ff0000"
package_name: fr.coopcycle.robinfood
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
coursiers_montpellier:
if: ${{ inputs.build_coursiers_montpellier }}
name: Build Coursiers MTP app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: coursiersmontpellier
instance_url: https://coursiersmontpellier.coopcycle.org
app_name: Coursiers MTP
primary_color: "#004e9c"
package_name: fr.coopcycle.coursiers_mtp
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
coursiers_rennais:
if: ${{ inputs.build_coursiers_rennais }}
name: Build LCR app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: lcr
instance_url: https://lcr.coopcycle.org
app_name: Les Coursiers Rennais
primary_color: "#0A090A"
package_name: fr.coopcycle.lcr
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
eraman:
if: ${{ inputs.build_eraman }}
name: Build Eraman app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: eraman
instance_url: https://eramangasteiz.coopcycle.org
app_name: Eraman
primary_color: "#317764"
package_name: fr.coopcycle.eraman
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit
sicklo:
if: ${{ inputs.build_sicklo }}
name: Build Sicklo app
uses: ./.github/workflows/fastlane_android.yml
with:
tag: ${{ inputs.tag }}
instance: sicklo
instance_url: https://sicklo.coopcycle.org
app_name: Siclo
primary_color: "#1f2632"
package_name: fr.coopcycle.sicklo
keystore_key_alias: instance
keystore_key_password_secret: SIGNING_KEY_PASSWORD_INSTANCE
deploy_google_play: ${{ inputs.deploy_google_play }}
secrets: inherit