Skip to content

iOS-ipa-build

iOS-ipa-build #6

Workflow file for this run

name: iOS-ipa-build
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build-ios:
name: 🎉 iOS Build
runs-on: macos-latest
steps:
# 1️⃣ Checkout the repo
- uses: actions/checkout@v3
# 2️⃣ Set up Flutter
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
# 3️⃣ Install dependencies
- run: flutter pub get
# 4️⃣ Update CocoaPods
- run: pod repo update
working-directory: ios
# 5️⃣ Build iOS app without code signing
- run: flutter build ios --release --no-codesign
# 6️⃣ Prepare Payload folder for IPA
- run: mkdir Payload
working-directory: build/ios/iphoneos
- run: mv Runner.app Payload
working-directory: build/ios/iphoneos
# 7️⃣ Zip into .ipa
- name: Create IPA
run: zip -qq -r -9 FlutterIpaExport.ipa Payload
working-directory: build/ios/iphoneos
# ✅ 8️⃣ Upload .ipa to GitHub Release (using a stable action)
- name: Upload IPA to Release
uses: ncipollo/release-action@v1
with:
tag: v${{ github.run_number }}
artifacts: build/ios/iphoneos/FlutterIpaExport.ipa
token: ${{ secrets.GH_PAT }}
allowUpdates: true
body: "Automated .ipa build for iOS (run #${{ github.run_number }})"