-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
85 lines (85 loc) · 3.87 KB
/
bitrise.yml
File metadata and controls
85 lines (85 loc) · 3.87 KB
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
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
app:
envs:
- PROJECT_LOCATION: android
- MODULE: app
- VARIANT: debug
- BITRISE_PROJECT_PATH: ios/AwesomeProject.xcworkspace
- BITRISE_SCHEME: AwesomeProject
- BITRISE_EXPORT_METHOD: development
trigger_map:
- push_branch: '*'
workflow: primary
- pull_request_source_branch: '*'
workflow: primary
workflows:
deploy:
description: "## Configure Android part of the deploy workflow\n\nTo generate
a signed APK:\n\n1. Open the **Workflow** tab of your project on Bitrise.io\n1.
Add **Sign APK step right after Android Build step**\n1. Click on **Code Signing**
tab\n1. Find the **ANDROID KEYSTORE FILE** section\n1. Click or drop your file
on the upload file field\n1. Fill the displayed 3 input fields:\n1. **Keystore
password**\n1. **Keystore alias**\n1. **Private key password**\n1. Click on
**[Save metadata]** button\n\nThat's it! From now on, **Sign APK** step will
receive your uploaded files.\n\n## Configure iOS part of the deploy workflow\n\nTo
generate IPA:\n\n1. Open the **Workflow** tab of your project on Bitrise.io\n1.
Click on **Code Signing** tab\n1. Find the **PROVISIONING PROFILE** section\n1.
Click or drop your file on the upload file field\n1. Find the **CODE SIGNING
IDENTITY** section\n1. Click or drop your file on the upload file field\n1.
Click on **Workflows** tab\n1. Select deploy workflow\n1. Select **Xcode Archive
& Export for iOS** step\n1. Open **Force Build Settings** input group\n1. Specify
codesign settings\nSet **Force code signing with Development Team**, **Force
code signing with Code Signing Identity** \nand **Force code signing with Provisioning
Profile** inputs regarding to the uploaded codesigning files\n1. Specify manual
codesign style\nIf the codesigning files, are generated manually on the Apple
Developer Portal, \nyou need to explicitly specify to use manual coedsign settings
\ \n(as ejected rn projects have xcode managed codesigning turned on). \nTo
do so, add 'CODE_SIGN_STYLE=\"Manual\"' to 'Additional options for xcodebuild
call' input\n\n## To run this workflow\n\nIf you want to run this workflow manually:\n\n1.
Open the app's build list page\n2. Click on **[Start/Schedule a Build]** button\n3.
Select **deploy** in **Workflow** dropdown input\n4. Click **[Start Build]**
button\n\nOr if you need this workflow to be started by a GIT event:\n\n1. Click
on **Triggers** tab\n2. Setup your desired event (push/tag/pull) and select
**deploy** workflow\n3. Click on **[Done]** and then **[Save]** buttons\n\nThe
next change in your repository that matches any of your trigger map event will
start **deploy** workflow.\n"
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- script@1:
title: Do anything with Script step
- npm@1:
inputs:
- command: install
- install-missing-android-tools@2:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- android-build@0:
inputs:
- project_location: $PROJECT_LOCATION
- certificate-and-profile-installer@1: {}
- cocoapods-install@2: {}
- xcode-archive@3:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- export_method: $BITRISE_EXPORT_METHOD
- configuration: Release
- deploy-to-bitrise-io@1: {}
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- script@1:
title: Do anything with Script step
- npm@1:
inputs:
- command: install
- npm@1:
inputs:
- command: test
- deploy-to-bitrise-io@1: {}