Skip to content

Instantly share code, notes, and snippets.

@fromkk
Created February 13, 2021 08:52
Show Gist options
  • Save fromkk/eb70546fa90039e24200489c5f27019f to your computer and use it in GitHub Desktop.
Save fromkk/eb70546fa90039e24200489c5f27019f to your computer and use it in GitHub Desktop.
DSYMsのダウンロード・アップロードに対応したbitrise.yml
---
format_version: '6'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: fastlane
app:
envs:
- BITRISE_PROJECT_PATH: App.xcodeproj
- BITRISE_SCHEME: App
- BITRISE_EXPORT_METHOD: development
workflows:
dsym_sync:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- certificate-and-profile-installer: {}
- cocoapods-install@2: {}
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
bundle install
export FASTLANE_USER=$APPLE_ID
export FASTLANE_PASSWORD=$APPLE_PW
export SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER=$APP_PHONE_NUMBER
export DOWNLOAD_DSYMS_TEAM_ID=$APPLE_TEAM_ID
fastlane udpate_session
DSYMS_PATH=$(pwd)/dsyms/
mkdir $DSYMS_PATH
fastlane dsyms dest:$DSYMS_PATH
envman add --key DSYMS_PATH --value $DSYMS_PATH
- firebase-dsym-upload@2:
inputs:
- fdu_dsym_location: $DSYMS_PATH
- fdu_google_services_location: Resources/GoogleService-Info.plist
meta:
bitrise.io:
machine_type: standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment