Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. release-ios:
  2. steps:
  3. - activate-ssh-key@4.0.3:
  4. run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
  5. - git-clone@4.0.14: {}
  6. - flutter-installer@0.9.2: {}
  7. - certificate-and-profile-installer@1.10.1: {}
  8. - script@1.1.5:
  9. inputs:
  10. - content: |-
  11. #!/usr/bin/env bash
  12. # fail if any commands fails
  13. set -e
  14. # debug log
  15. set -x
  16. # write your script here
  17. STR="$BITRISE_GIT_BRANCH" #String with names
  18. IFS='/' read -ra VERSION <<< "$STR" #Convert string to array
  19. export FLUTTER_APP_VERSION="${VERSION[1]}"
  20. set -ex
  21. if [ ! -z "$FLUTTER_APP_VERSION" ] ; then
  22. envman add --key FLUTTER_APP_VERSION --value "$FLUTTER_APP_VERSION"
  23. fi
  24. - set-ios-version@2.0.0:
  25. inputs:
  26. - bundle_version: "$BITRISE_BUILD_NUMBER"
  27. - bundle_version_short: "$FLUTTER_APP_VERSION"
  28. - info_plist_file: "$BITRISE_SOURCE_DIR/ios/Runner/Info.plist"
  29. - xcode-archive@2.4.19:
  30. inputs:
  31. - export_method: app-store
  32. - team_id: ''
  33. - deploy-to-bitrise-io@1.3.19: {}
  34. - deploy-to-itunesconnect-deliver@2.14.1:
  35. inputs:
  36. - password: "$APPLE_ITUNES_CONNECT_PASSWORD"
  37. - team_id: CHANGE_THIS
  38. - team_name: CHANGE_THIS
  39. - app_id: CHANGE_THIS
  40. - bundle_id: CHANGE_THIS
  41. - itunescon_user: "$APPLE_ITUNES_CONNECT_ID"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement