-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitrise_android.yml
58 lines (57 loc) · 1.62 KB
/
bitrise_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
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: master
workflow: primary
- push_branch: feature/*
workflow: primary
workflows:
primary:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
title: Move app from template to root directory
inputs:
- content: |-
#!/usr/bin/env bash
rsync -va --delete-after ./template/ .
title: React Native install node dependencies
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
node -v
mv .env.example .env
npm ci
title: android build scripts
inputs:
- content: |-
#!/usr/bin/env bash
set -e
npx jetify
inputs:
- destination: "$ANDROID_KEYSTORE_FILE"
- source: "$BITRISEIO_ANDROID_KEYSTORE_URL"
inputs:
- gradle_file: android/build.gradle
- gradlew_path: "./android/gradlew"
- gradle_task: assembleRelease
# - google-play-deploy:
# inputs:
# - service_account_json_key_path: "$BITRISEIO_release_URL"
# - package_name: com.dvhb.template-react-native
- [email protected]: {}
app:
envs:
- opts:
is_expand: false
ANDROID_KEYSTORE_FILE: "/Users/vagrant/git/android/app/release.keystore"