-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
bitrise.yml
143 lines (139 loc) · 4.58 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
format_version: "8"
default_step_lib_source: "https://github.com/bitrise-io/bitrise-steplib.git"
project_type: ios
trigger_map:
# - push_branch: main
# workflow: deploy
# - push_branch: develop
# workflow: deploy
# - push_branch: release/*
# workflow: deploy
- pull_request_source_branch: "*"
workflow: primary
workflows:
deploy:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- recreate-user-schemes@1:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- certificate-and-profile-installer@1: {}
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
xcodebuild -workspace $BITRISE_PROJECT_PATH -list
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
- set-xcode-build-number@1:
inputs:
- plist_path: Puffery/Info.plist
title: "Puffery: Set Xcode Project Build Number"
- set-xcode-build-number@1:
inputs:
- plist_path: Puffery Intents/Info.plist
title: "Puffery Intent: Set Xcode Project Build Number"
- set-xcode-build-number@1:
inputs:
- plist_path: PufferyWidget/Info.plist
title: "Puffery Widget: Set Xcode Project Build Number"
- xcode-archive@2:
inputs:
- configuration: Release
- export_method: app-store
- export-xcarchive-mac@1:
inputs:
- export_method: app-store
- deploy-to-itunesconnect-application-loader@0:
inputs:
- password: $PUFFERY_APPLE_PASSWORD
- app_password: $PUFFERY_APPLE_APP_PASSWORD
- itunescon_user: $PUFFERY_APPLE_ID
- deploy-to-bitrise-io@1:
inputs:
- notify_user_groups: none
- cache-push@2: {}
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
curl -X "POST" "https://vapor.puffery.app/notify/$PUFFERY_CHANNEL" \
-H 'Content-Type: application/json; charset=utf-8' \
-d "{
\"title\": \"New Puffery build $BITRISE_BUILD_NUMBER\",
\"body\": \"$BITRISE_GIT_MESSAGE\",
\"color\": \"blue\",
}"
title: Puffery Passed
- script@1:
is_always_run: true
run_if: .IsBuildFailed
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
curl -X "POST" "https://vapor.puffery.app/notify/$PUFFERY_CHANNEL" \
-H 'Content-Type: application/json; charset=utf-8' \
-d "{
\"title\": \"Build failed $BITRISE_BUILD_NUMBER\",
\"body\": \"$BITRISE_GIT_MESSAGE\",
\"color\": \"red\",
}"
title: Puffery Failed
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- set-xcode-build-number@1:
inputs:
- plist_path: Puffery/Info.plist
title: "Puffery: Set Xcode Project Build Number"
- set-xcode-build-number@1:
inputs:
- plist_path: Puffery Intents/Info.plist
title: "Puffery Intents: Set Xcode Project Build Number"
- xcode-test@2:
inputs:
- generate_code_coverage_files: "yes"
title: Puffery Xcode Test
- certificate-and-profile-installer@1: {}
- cache-push@2: {}
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: Puffery.xcworkspace
- BITRISE_SCHEME: Puffery
opts:
is_expand: false
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
- opts:
is_expand: false
BITRISE_CATALYST_PROVISIONING_PROFILE: a43b7298-7d38-4022-bcfb-37772c75f0e2
meta:
bitrise.io:
stack: osx-xcode-13.1.x