-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbitrise.yml
85 lines (82 loc) · 2.62 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
workflows:
debug:
steps:
- [email protected]: {}
- flutter-installer@0:
inputs:
- installation_bundle_url: https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.5-stable.tar.xz
- is_update: "false"
- flutter-build@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- platform: android
- android_additional_params: --debug
- is_debug_mode: "true"
is_always_run: true
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
no_op:
steps:
- activate-ssh-key@4: {}
- [email protected]: {}
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipeline return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
echo version code -- $versionCode
echo version name -- $versionName
echo "this is an artifact" > /bitrise/deploy/artifact.txt
- deploy-to-bitrise-io@2: {}
release:
steps:
- git-clone@6: {}
- flutter-installer@0:
inputs:
- is_update: "false"
- file-downloader:
inputs:
- source: $BITRISEIO_ANDROID_KEYSTORE_URL
- destination: $BITRISE_SOURCE_DIR/android/app/ueno-upload-keystore.jks
- file-downloader@1:
inputs:
- destination: $BITRISE_SOURCE_DIR/android/key.properties
- source: $BITRISEIO_KEY_PROPERTIES_URL
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
echo $BUILD_VERSION
echo $BUILD_NUMBER
echo "Finished debug script"
- flutter-build@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- platform: android
- android_output_type: appbundle
- additional_build_params: --build-number=$BUILD_NUMBER --build-name=$BUILD_VERSION
- is_debug_mode: "true"
- cache-pull@2: {}
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: linux-docker-android-20.04
app:
envs:
- opts:
is_expand: false
BITRISE_FLUTTER_PROJECT_LOCATION: .