Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: release/*
workflow: upload_to_appstoreconnect
workflows:
upload_to_appstoreconnect:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- certificate-and-profile-installer: {}
- cache-pull: {}
- carthage:
inputs:
- carthage_options: "--platform ios --use-ssh"
- cocoapods-install: {}
- script:
inputs:
- content: |-
#!/bin/bash
defaults write xcodebuild PBXNumberOfParallelBuildSubtasks 4
defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
defaults write com.apple.xcode PBXNumberOfParallelBuildSubtasks 4
defaults write com.apple.xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
title: xcodebuild configuration
- script:
title: Get build version
inputs:
- content: |-
#!/bin/bash
set -ex
set -x
# write your script here
git log --oneline | wc -l | tr -cd '0123456789' | envman add --key CUSTOM_BUILD_NUMBER
- set-xcode-build-number:
inputs:
- build_version: "$CUSTOM_BUILD_NUMBER"
- plist_path: XXXX/info.plist
title: Set XXXX Build Number
- set-xcode-build-number:
inputs:
- build_version: "$CUSTOM_BUILD_NUMBER"
- plist_path: NotificationExtension/info.plist
title: Set NotificationExtension Build Number
- ios-auto-provision:
inputs:
- configuration: Release
- generate_profiles: 'yes'
- distribution_type: app-store
- xcode-archive:
inputs:
- export_method: app-store
- team_id: XXXXXXXX
- xcodebuild_options: "-allowProvisioningUpdates"
- configuration: Release
- deploy-to-itunesconnect-application-loader:
inputs:
- password: "$APPLE_PW"
- app_password: "$APP_PASS"
- itunescon_user: "$APPLE_ID"
- cache-push:
is_always_run: true
- slack:
inputs:
- channel: "$SLACK_CHANNEL"
- message: |-
ビルド番号: $CUSTOM_BUILD_NUMBER
ブランチ名: $BITRISE_GIT_BRANCH
AppStore Connectへのアップロードが完了しました :rocket:
- webhook_url: "$SLACK_WEBHOOK_URL"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: XXXX.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: XXXX
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
- opts:
is_expand: false
SLACK_CHANNEL: "#xxxxxxxxxxx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.