-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbitrise.yml
119 lines (117 loc) · 4.13 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
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
deploy:
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.
## How to get a signed IPA This workflow contains the **Certificate and Profile Installer** step. To use this you will need to upload your signing certificate and provisioning profile to the codesigning tab. The easiest way to do this is by using the Bitrise codesigndoc tool. Alternatively you can replace the Certificate and Profile Installer step with the iOS Autoprovision Step.
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- script@1:
title: Do anything with Script step
- certificate-and-profile-installer@1: {}
- flutter-installer@0:
inputs:
- is_update: 'false'
- cache-pull@2: {}
- flutter-analyze@0:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- flutter-test@1:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- flutter-build@0:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- platform: both
- sign-apk@1:
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
inputs:
- use_apk_signer: 'true'
- xcode-archive@4:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- compile_bitcode: 'no'
- upload_bitcode: 'no'
- automatic_code_signing: 'off'
- distribution_method: "$BITRISE_DISTRIBUTION_METHOD"
- xcconfig_content: |
DEVELOPMENT_TEAM = $BITRISE_TEAM
CODE_SIGN_IDENTITY = $BITRISE_CODE_SIGNING_IDENTITY
PROVISIONING_PROFILE_SPECIFIER = $BITRISE_PROFILE_ID
- verbose_log: 'no'
- configuration: Debug
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- flutter-installer@0:
inputs:
- is_update: 'false'
- cache-pull@2: {}
- flutter-analyze@0:
inputs:
- fail_severity: warning
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- flutter-test@1:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- avd-manager@1: {}
- wait-for-android-emulator@1: {}
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
echo "Kicking off Flutter Driver e2e testing"
flutter driver --target=test_driver/e2e.dart > flutter_driver_tests.log
echo "Copying log to deploy directory"
cp flutter_driver_tests.log $BITRISE_DEPLOY_DIR/flutter_driver_tests.log
title: Flutter Driver
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
app:
envs:
- opts:
is_expand: false
BITRISE_FLUTTER_PROJECT_LOCATION: "."
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/Runner.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: Runner
- opts:
is_expand: false
BITRISE_DISTRIBUTION_METHOD: development
- opts:
is_expand: false
BITRISE_TEAM: 72SA8V3WYL
- opts:
is_expand: false
BITRISE_PROFILE_ID: 60cff004-0cf3-401a-9658-229c92516f26
- opts:
is_expand: false
BITRISE_CODE_SIGNING_IDENTITY: Apple Development
meta:
bitrise.io:
stack: osx-xcode-13.4.x
machine_type_id: g2.4core