codemagic.yaml edited online with Bitbucket

This commit is contained in:
Dev Equilibrium
2023-10-05 14:37:51 +00:00
parent 4b0fabac1f
commit 5b83d7370b
+54 -11
View File
@@ -1,24 +1,52 @@
workflows:
ios-native-workflow:
name: iOS Native
ionic-capacitor-ios-workflow:
name: Ionic Capacitor iOS Workflow
max_build_duration: 120
instance_type: mac_mini_m1
integrations:
app_store_connect: GabineteDigital
app_store_connect: 433YAF3YWG
environment:
ios_signing:
distribution_type: app_store
# distribution_type: app_store
bundle_identifier: com.gpr.gabinetedigital.teste
provisioning_profiles:
- codemagic_provisioning_profiles
certificates:
- Development_Certificate
vars:
BUNDLE_ID: "com.gpr.gabinetedigital.teste"
APP_STORE_APPLE_ID: DV5P2ZCAPJ
# Ionic Xcode worskspace and scheme
XCODE_WORKSPACE: "ios/App/App.xcworkspace"
XCODE_SCHEME: "App"
APP_STORE_APP_ID: 1664747447 # <-- Put the app id number here. This is found in App Store Connect > App > General > App Information
node: 16.15.1
xcode: latest
cocoapods: default
cocoapods: 1.12.1
triggering:
events:
- push
branch_patterns:
- pattern: develop
include: true
source: true
scripts:
- name: Install CocoaPods dependencies
- name: Install npm dependencies for Ionic project
script: |
pod install
- name: Set up provisioning profiles settings on Xcode project
script: xcode-project use-profiles
npm install
- name: Cocoapods installation
script: |
cd ios/App && pod install
- name: Update dependencies and copy web assets to native project
script: |
npx cap sync ios # <- update native dependencies and copy web assets to native project
npx cap copy ios # <- use this is you don't need to update native dependencies
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles
- name: Increment build number
script: |
cd $CM_BUILD_DIR/ios/App
LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_ID")
agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
- name: Build ipa for distribution
script: |
xcode-project build-ipa \
@@ -30,7 +58,22 @@ workflows:
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
email:
recipients:
- eudes.inacio@equilibrium.co.ao
notify:
success: false # To not receive a notification when a build succeeds
failure: false # To not receive a notification when a build fails
app_store_connect:
auth: integration
# Configuration related to TestFlight (optional)
# Note: This action is performed during post-processing.
submit_to_testflight: true
# 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
# Configuration related to App Store (optional)
# Note: This action is performed during post-processing.
submit_to_app_store: false