62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
name: Build iOS IPA
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
tags:
|
|
- 'v*'
|
|
- 'latest'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-ios:
|
|
name: Build iOS IPA
|
|
runs-on: macos-15
|
|
if: github.server_url == 'https://github.com'
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Select Xcode Version
|
|
run: |
|
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
|
xcodebuild -version
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
cache: true
|
|
|
|
- name: Inspect Environment
|
|
run: |
|
|
flutter --version
|
|
pod --version
|
|
|
|
- name: Fetch Flutter Dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Clean Stale Podfile Lock
|
|
run: |
|
|
rm -rf ios/Pods ios/Podfile.lock
|
|
|
|
- name: Build iOS (Unsigned IPA)
|
|
run: |
|
|
flutter build ios --release --no-codesign
|
|
|
|
mkdir -p build/ios/iphoneos/Payload
|
|
cp -r build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/
|
|
cd build/ios/iphoneos
|
|
zip -r oggauer-gemeindetrommler.ipa Payload
|
|
|
|
|
|
- name: Upload IPA Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: oggauer-gemeindetrommler-ios
|
|
path: build/ios/iphoneos/oggauer-gemeindetrommler.ipa
|
|
retention-days: 7
|