Files
doneit-web/codemagic.yaml
T

67 lines
2.4 KiB
YAML
Raw Normal View History

2023-10-05 14:46:54 +00:00
workflows:
ios-workflow:
name: iOS Workflow
2023-10-05 14:37:51 +00:00
max_build_duration: 120
2023-10-02 15:57:48 +01:00
integrations:
2023-10-05 14:37:51 +00:00
app_store_connect: 433YAF3YWG
2023-10-02 11:55:56 +01:00
environment:
2023-10-02 15:57:48 +01:00
ios_signing:
2023-10-05 14:46:54 +00:00
distribution_type: app_store
2023-10-02 15:57:48 +01:00
bundle_identifier: com.gpr.gabinetedigital.teste
2023-10-02 11:55:56 +01:00
vars:
2023-10-05 14:46:54 +00:00
APP_STORE_APPLE_ID: 1664747447
XCODE_WORKSPACE: "platforms/ios/App.app.xcworkspace"
XCODE_SCHEME: "App.app"
2023-10-02 11:55:56 +01:00
scripts:
2023-10-05 14:46:54 +00:00
- name: Install npm dependencies for Ionic Capacitor project
script: |
2023-10-05 14:37:51 +00:00
npm install
- name: Cocoapods installation
2023-10-05 14:46:54 +00:00
script: |
2023-10-05 14:37:51 +00:00
cd ios/App && pod install
- name: Update dependencies and copy web assets to native project
2023-10-05 14:46:54 +00:00
script: |
# if you don't need to update native dependencies, use this:
2023-10-05 15:02:43 +00:00
# npx cap copyapp
2023-10-05 14:46:54 +00:00
#
# to update native dependencies, use this command:
npx cap sync
2023-10-05 14:37:51 +00:00
- name: Set up code signing settings on Xcode project
2023-10-05 14:46:54 +00:00
script: |
2023-10-05 14:37:51 +00:00
xcode-project use-profiles
- name: Increment build number
2023-10-05 14:46:54 +00:00
script: |
2023-10-05 14:37:51 +00:00
cd $CM_BUILD_DIR/ios/App
2023-10-05 14:46:54 +00:00
LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_STORE_APPLE_ID")
2023-10-05 14:37:51 +00:00
agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
2023-10-02 15:57:48 +01:00
- name: Build ipa for distribution
2023-10-05 14:46:54 +00:00
script: |
cd $CM_BUILD_DIR/ios/App
2023-10-02 15:57:48 +01:00
xcode-project build-ipa \
2023-10-05 14:46:54 +00:00
--workspace "$XCODE_WORKSPACE" \
2023-10-02 15:57:48 +01:00
--scheme "$XCODE_SCHEME"
2023-10-02 11:55:56 +01:00
artifacts:
2023-10-02 15:57:48 +01:00
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
2023-10-02 11:55:56 +01:00
publishing:
2023-10-05 14:37:51 +00:00
email:
recipients:
2023-10-05 14:46:54 +00:00
- romavicdosanjoskc@gmail.com
2023-10-05 14:37:51 +00:00
notify:
2023-10-05 14:46:54 +00:00
success: true
failure: false
2023-10-02 15:57:48 +01:00
app_store_connect:
auth: integration
2023-10-05 14:37:51 +00:00
# Configuration related to TestFlight (optional)
# Note: This action is performed during post-processing.
2023-10-02 15:57:48 +01:00
submit_to_testflight: true
2023-10-05 14:46:54 +00:00
beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- group name 1
- group name 2
2023-10-05 14:37:51 +00:00
# Configuration related to App Store (optional)
# Note: This action is performed during post-processing.
2023-10-05 14:46:54 +00:00
submit_to_app_store: false