Guest User

Untitled

a guest
May 29th, 2022
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. workflows:
  2. react-native-ios:
  3. name: React Native iOS
  4. max_build_duration: 120
  5. instance_type: mac_mini
  6. environment:
  7. groups:
  8. - appstore_credentials
  9. vars:
  10. XCODE_WORKSPACE: # <-- <XCODE_WORKSPACE>
  11. XCODE_SCHEME: # <-- <XCODE_SCHEME>
  12. BUNDLE_ID: # <-- <BUNDLE_ID>
  13. APP_STORE_APP_ID: # <-- <APP_STORE_APP_ID>
  14. node: v16.11.1
  15. xcode: 13.0
  16. cocoapods: default
  17. triggering:
  18. events:
  19. - push
  20. - tag
  21. - pull_request
  22. branch_patterns:
  23. - pattern: master
  24. include: true
  25. source: true
  26. scripts:
  27. - name: Set up keychain to be used for code signing using Codemagic CLI 'keychain' command
  28. script: keychain initialize
  29. - name: Fetch signing files
  30. script: |
  31. # You can allow creating resources if existing are not found with `--create` flag
  32. app-store-connect fetch-signing-files "$BUNDLE_ID" \
  33. --type IOS_APP_STORE \
  34. --create
  35. - name: Set up signing certificate
  36. script: keychain add-certificates
  37. - name: Increment build number
  38. script: |
  39. #!/bin/sh
  40. set -e
  41. set -x
  42. cd $FCI_BUILD_DIR/ios
  43. # agvtool new-version -all $(($BUILD_NUMBER + 1))
  44. agvtool new-version -all 17
  45. - name: Set up code signing settings on Xcode project
  46. script: |
  47. xcode-project use-profiles
  48. - name: Install npm dependencies
  49. script: |
  50. npm install
  51. - name: Install CocoaPods dependencies
  52. script: |
  53. cd ios && pod install
  54. - name: Build ipa for distribution
  55. script: |
  56. xcode-project build-ipa --workspace "$FCI_BUILD_DIR/ios/$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME"
  57. artifacts:
  58. - build/ios/ipa/*.ipa
  59. - /tmp/xcodebuild_logs/*.log
  60. - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
  61. - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
  62. publishing:
  63. # See the following link for details about email publishing - https://docs.codemagic.io/publishing-yaml/distribution/#email
  64. email:
  65. recipients:
  66. notify:
  67. success: true # To not receive a notification when a build succeeds
  68. failure: false # To not receive a notification when a build fails
  69. app_store_connect:
  70. api_key: $APP_STORE_CONNECT_PRIVATE_KEY # Contents of the API key, can also reference environment variable such as $APP_STORE_CONNECT_PRIVATE_KEY
  71. key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER # Alphanumeric value that identifies the API key, can also reference environment variable such as $APP_STORE_CONNECT_KEY_IDENTIFIER
  72. issuer_id: $APP_STORE_CONNECT_ISSUER_ID # Alphanumeric value that identifies who created the API key, can also reference environment variable such as $APP_STORE_CONNECT_ISSUER_ID
  73. submit_to_testflight: false # Optional boolean, defaults to false. Whether or not to submit the uploaded build to TestFlight beta review. Required for distributing to beta groups. Note: This action is performed during post-processing.
  74. submit_to_app_store: false
  75. # beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
  76. # - group name 1
  77. # - group name 2
  78.  
Advertisement
Add Comment
Please, Sign In to add comment