message: chore(): adjusted iOS build
diff: @@ -9,8 +9,9 @@ variables:
  stages:
  - build
  - test
  - - native_build
  - qa
  + - native_build
  + - publish
  build_ionic:
  stage: build
  @@ -71,13 +72,26 @@ build_ios:
  - npm run apply-diagnostic-modules # manually remove unused cordova-diagnostic-plugin modules
  - npx ionic build --prod
  - npx cap sync ios
  - - xcodebuild -workspace ios/App/App.xcworkspace -scheme "App" -destination generic/platform=iOS -configuration Release archive -archivePath ios/AirGap\ Vault.xcarchive MARKETING_VERSION=$VERSION CURRENT_PROJECT_VERSION=1.0.$CI_PIPELINE_ID -allowProvisioningUpdates
  - - xcodebuild -exportArchive -archivePath ios/AirGap\ Vault.xcarchive -exportOptionsPlist exportOptions.plist -exportPath ios/ -allowProvisioningUpdates
  - - xcrun altool --upload-app -f ios/App.ipa -u $IOS_USERNAME -p $IOS_PASSWORD
  + - xcodebuild -workspace ios/App/App.xcworkspace -scheme "App" -destination generic/platform=iOS -configuration Release archive -archivePath ios/App.xcarchive MARKETING_VERSION=$VERSION CURRENT_PROJECT_VERSION=$CI_PIPELINE_ID -allowProvisioningUpdates
  + - xcodebuild -exportArchive -archivePath ios/App.xcarchive -exportOptionsPlist exportOptions.plist -exportPath ios/ -allowProvisioningUpdates
  artifacts:
  paths:
  - ios/App.ipa
  - - ios/AirGap\ Vault.xcarchive
  + - ios/App.xcarchive
  + tags:
  + - ios
  +
  +publish_ios:
  + stage: publish
  + when: manual
  + needs:
  + - job: build_ios
  + artifacts: true
  + before_script:
  + - echo "$IOS_EXPORT_OPTIONS" > exportOptions.plist
  + script:
  + - export DEVELOPER_DIR=$XCODE_PATH
  + - xcrun altool --upload-app -f ios/App.ipa -u $IOS_USERNAME -p $IOS_PASSWORD
  tags:
  - ios
  