Guest User

Untitled

a guest
Aug 18th, 2024
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.43 KB | None | 0 0
  1. workflows:
  2.   ios-build:
  3.     name: iOS Build Workflow
  4.     triggering:
  5.       events:
  6.        - push
  7.     max_build_duration: 60
  8.     environment:
  9.       flutter: stable
  10.       xcode: 15.0
  11.     scripts:
  12.       - name: Clean Flutter project
  13.         script: |
  14.          set -x
  15.           rm -rf ios/Pods ios/Podfile.lock pubspec.lock
  16.           flutter clean
  17.           flutter pub get
  18.           flutter gen-l10n
  19.       - name: Check Flutter and CocoaPods
  20.         script: |
  21.          set -x
  22.           flutter doctor
  23.           cd ios
  24.           pod --version
  25.           pod cache clean --all
  26.           pod install
  27.           pod install --repo-update
  28.       - name: Generate localizations
  29.         script: flutter gen-l10n
  30.       - name: Build iOS Release
  31.         script: |
  32.          set -x
  33.           xcodebuild -workspace ios/Runner.xcworkspace -scheme Runner -configuration Release -sdk iphoneos -archivePath $HOME/Runner.xcarchive archive | xcpretty
  34.       - name: Export IPA
  35.         script: |
  36.          set -x
  37.           xcodebuild -exportArchive -archivePath $HOME/Runner.xcarchive -exportOptionsPlist ios/ExportOptions.plist -exportPath $HOME
  38.           mv $HOME/Runner.ipa $HOME/BetterMusic.ipa
  39.       - name: Package IPA
  40.         script: |
  41.          set -x
  42.           mkdir -p Payload
  43.           cp -r $HOME/BetterMusic.ipa Payload/
  44.           zip -r BetterMusic.ipa Payload
  45.           rm -rf Payload
  46.     artifacts:
  47.      - BetterMusic.ipa
  48.  
Add Comment
Please, Sign In to add comment