This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbitrise.yml
123 lines (116 loc) · 3.66 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
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
app:
envs:
- BITRISE_PROJECT_PATH: Marindeck.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: Marindeck
opts:
is_expand: false
- BITRISE_DISTRIBUTION_METHOD: ad-hoc
opts:
is_expand: false
meta:
bitrise.io:
machine_type_id: g2-m1.8core
stack: osx-xcode-14.1.x-ventura
trigger_map:
- tag: '*'
workflow: primary
workflows:
deploy:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- script@1:
title: Do anything with Script step
- certificate-and-profile-installer@1: {}
- recreate-user-schemes@1:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- cocoapods-install@2: {}
- xcode-test@4:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- xcode-archive@4:
inputs:
- automatic_code_signing: api-key
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- distribution_method: $BITRISE_DISTRIBUTION_METHOD
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
meta:
bitrise.io:
stack: osx-xcode-13.1.x
primary:
steps:
- script@1:
inputs:
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug log\nset -x\n\ncurl \\\n-H \"Content-Type: multipart/form-data\" \\\n-F 'payload_json={\"content\": \"\U0001F6E0ビルド開始\U0001F6E0\"}' \\\n$DISCORD_WEBHOOK_URL\n"
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@7.0: {}
- cache-pull@2: {}
- cocoapod-key@2:
inputs:
- keys: |2+
- xcodegen@0: {}
- manage-ios-code-signing@1:
inputs:
- distribution_method: ad-hoc
- certificate-and-profile-installer@1: {}
- xcode-archive@4.7:
inputs:
- scheme: Marindeck
- distribution_method: ad-hoc
- verbose_log: "yes"
- project_path: $BITRISE_SOURCE_DIR/Marindeck.xcworkspace
- deploygate--upload-app-bitrise-step@1:
is_always_run: true
inputs:
- owner_name: RiniaOk_yama
- app_path: $BITRISE_IPA_PATH
- visibility: public
- release_note: |-
$BITRISE_GIT_MESSAGE
bitriseによる自動アップデート。
- distribution_key: 7bde246206a41886a45929f51e70525f3248c22b
- api_key: $DEPLOYGATE_KEY
- deploy-to-bitrise-io@2: {}
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
version=(`echo $DEPLOYGATE_UPLOAD_APP_STEP_RESULT_JSON | jq ".results .revision"`)
version=v$version
curl \
-H "Content-Type: multipart/form-data" \
-F 'payload_json={"content": "'$version' だよ〜"}' \
-F "file1=@$BITRISE_IPA_PATH" \
$DISCORD_WEBHOOK_URL
- script:
is_always_run: true
run_if: .IsBuildFailed
inputs:
- content: "#!/bin/bash\ncurl \\\n-H \"Content-Type: multipart/form-data\" \\\n-F 'payload_json={\"content\": \"Bitrise FAILD. @RiniaOk_yama \U0001F448\U0001F92F\"}' \\\n$DISCORD_WEBHOOK_URL"
- cache-push@2:
inputs:
- is_debug_mode: "true"
- compress_archive: "true"
- cache_paths: |+
$GEM_CACHE_PATH -> ./.ruby-version
vendor/bundle -> Gemfile.lock
./.bundle
meta:
bitrise.io:
stack: osx-xcode-13.1.x