Skip to content

Instantly share code, notes, and snippets.

@mikitasolo
Created June 4, 2019 12:11
Show Gist options
  • Save mikitasolo/1c6867d4f7f7e6813fedc0125dd5d1ea to your computer and use it in GitHub Desktop.
Save mikitasolo/1c6867d4f7f7e6813fedc0125dd5d1ea to your computer and use it in GitHub Desktop.
An example of bitrise.yml for deploying android React Native app
---
format_version: '7'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key@4.0.3:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0.14: {}
- cache-pull@2.0.1: {}
- npm@1.0.2:
inputs:
- command: install
- install-missing-android-tools@2.3.5:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- gradle-runner@1.9.0:
inputs:
- gradle_task: assembleProductionRelease
- gradle_file: "$PROJECT_LOCATION/build.gradle"
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- sign-apk@1.3.0:
inputs:
- android_app: |-
$BITRISE_APK_PATH_LIST
$BITRISE_AAB_PATH_LIST
- deploy-to-bitrise-io: {}
- cache-push@2.2.0: {}
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: android
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: ''
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/app.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: app
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment