-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbitrise.yml
159 lines (149 loc) · 5.32 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
155
156
157
158
159
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: master
workflow: deploy-master
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]: {}
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
inputs:
- new_version_name: 1.0.$BITRISE_BUILD_NUMBER
- build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle"
- gradle-runner@1:
title: gradlew assemble
inputs:
- gradle_file: "./app/build.gradle"
- gradlew_path: "./gradlew"
inputs:
- android_app: "./app/build/outputs/apk/georgiaDev/release/app-georgia-dev-release-unsigned.apk|./app/build/outputs/apk/georgiaLive/release/app-georgia-live-release-unsigned.apk|./app/build/outputs/apk/novidDev/release/app-novid-dev-release-unsigned.apk|./app/build/outputs/apk/novidLive/release/app-novid-live-release-unsigned.apk"
- script@1:
title: Move APKs to Bitrise Deploy Dir
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
echo "Moving APKs to Bitrise Deploy dir: $BITRISE_DEPLOY_DIR"
mv ./app/build/outputs/apk/*/*/*.apk $BITRISE_DEPLOY_DIR
- [email protected]: {}
- [email protected]: {}
envs:
- opts:
is_expand: false
VARIANT: novidDevDebug
deploy-master:
description: |
## How to get a signed APK
This workflow contains the **Sign APK** step. To sign your APK all you have to do is to:
1. Click on **Code Signing** tab
1. Find the **ANDROID KEYSTORE FILE** section
1. Click or drop your file on the upload file field
1. Fill the displayed 3 input fields:
1. **Keystore password**
1. **Keystore alias**
1. **Private key password**
1. Click on **[Save metadata]** button
That's it! From now on, **Sign APK** step will receive your uploaded files.
## To run this workflow
If you want to run this workflow manually:
1. Open the app's build list page
2. Click on **[Start/Schedule a Build]** button
3. Select **deploy** in **Workflow** dropdown input
4. Click **[Start Build]** button
Or if you need this workflow to be started by a GIT event:
1. Click on **Triggers** tab
2. Setup your desired event (push/tag/pull) and select **deploy** workflow
3. Click on **[Done]** and then **[Save]** buttons
The next change in your repository that matches any of your trigger map event will start **deploy** workflow.
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]: {}
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
inputs:
- new_version_name: 1.0.$BITRISE_BUILD_NUMBER
- build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle"
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
title: Android Build Novid20
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
title: Android Sign Novid20
inputs:
- app: "$FIREBASE_APP_ID_NOVID"
- groups: dolphin-members, novid20, novid20-link
- firebase_token: "$FIREBASE_TOKEN"
title: Firebase Distribute Novid20
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: georgiaLiveRelease
title: Android Build Goergia
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
title: Android Sign Georgia
inputs:
- app: "$FIREBASE_APP_ID_GEORGIA"
- groups: dolphin-members, novid20, novid20-link
- firebase_token: "$FIREBASE_TOKEN"
title: Firebase Distribute Georgia
- [email protected]: {}
- [email protected]: {}
envs:
- opts:
is_expand: false
VARIANT: novidLiveRelease
- opts:
is_expand: false
FIREBASE_APP_ID_NOVID: 1:441057994010:android:491b10ff9700c12c4578a3
- opts:
is_expand: false
FIREBASE_APP_ID_GEORGIA: 1:441057994010:android:69844fabc4ed569a4578a3
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: "."
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: novidDevDebug