45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Build iOS IPA
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-ios:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: "3.41.9"
|
|
|
|
- name: Install Dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Install CocoaPods
|
|
run: |
|
|
cd ios
|
|
rm -f Podfile.lock
|
|
pod install --repo-update
|
|
|
|
- name: Build iOS (no codesign)
|
|
run: flutter build ios --release --no-codesign
|
|
|
|
- name: Create IPA from app bundle
|
|
run: |
|
|
mkdir -p build/ios/ipa
|
|
cd build/ios/Release-iphoneos
|
|
mkdir -p Payload
|
|
cp -r Runner.app Payload/
|
|
zip -r ../ipa/Runner.ipa Payload
|
|
echo "IPA created at build/ios/ipa/Runner.ipa"
|
|
|
|
- name: Upload IPA Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ios-ipa
|
|
path: build/ios/ipa/Runner.ipa
|