Attempt to fix iOS Builds #10
This file contains 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: flutter-build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: '3.22.3' | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Build APK | ||
run: flutter build apk --release | ||
- name: Rename APK | ||
run: mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/squarecloud.apk | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: squarecloud.apk | ||
path: build/app/outputs/flutter-apk/squarecloud.apk | ||
build-ios: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.3' | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Build iOS | ||
run: flutter build ios --release --no-codesign | ||
- name: Make Result Folders | ||
run: mkdir build/ios/iphoneos/Result | ||
run: mkdir build/ios/iphoneos/Result/Payload | ||
Check failure on line 46 in .github/workflows/flutter-build.yml GitHub Actions / flutter-buildInvalid workflow file
Check failure on line 46 in .github/workflows/flutter-build.yml GitHub Actions / flutter-buildInvalid workflow file
|
||
- name: Copy .app to Payload folder | ||
run: mv build/ios/iphoneos/Runner.app build/ios/iphoneos/Result/Payload/Runner.app | ||
- name: Zip to .ipa | ||
uses: vimtor/[email protected] | ||
with: | ||
files: build/ios/iphoneos/Result/ | ||
dest: build/ios/iphoneos/squarecloud.ipa | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: squarecloud.ipa | ||
path: build/ios/iphoneos/squarecloud.ipa |