Update ios.yml #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build iOS App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '2.5.3' | |
architecture: 'x86_64' # استخدام معمارية x86_64 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Accept Xcode license | |
run: sudo xcodebuild -license accept | |
- name: Build iOS app | |
run: flutter build ipa --release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build-output | |
path: build/ios/ipa |