test build #11
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: Build app | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- '.github/**' | |
- '.vscode/**' | |
- '.idea/**' | |
- 'test/**' | |
- '.gitignore' | |
jobs: | |
build_ios: | |
name: Build Unsigned iOS IPA | |
runs-on: macos-15 | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Set up Flutter | |
uses: subosito/[email protected] | |
- name: Install Flutter Dependencies | |
run: flutter pub get | |
- name: Install CocoaPods Dependencies | |
run: | | |
cd ios | |
pod install | |
cd .. | |
- name: Build iOS App (Unsign) | |
run: | | |
flutter build ios --release --no-codesign | |
- name: Package Unsigned IPA | |
run: | | |
mkdir -p Payload | |
cp -r build/ios/iphoneos/Runner.app Payload/ | |
zip -r RankHub.ipa Payload | |
rm -rf Payload | |
- name: Upload Unsigned IPA | |
uses: actions/[email protected] | |
with: | |
name: Unsigned-iOS-IPA | |
path: RankHub.ipa | |
build_android: | |
name: Build Android APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cedvdb/action-flutter-build-android@v1 | |
with: | |
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }} | |
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}" | |
# optionals | |
build-cmd: flutter build apk --release | |
working-directory: ./ | |
- name: Archive APK | |
uses: actions/[email protected] | |
with: | |
name: Android-APK | |
path: build/app/outputs/flutter-apk/app-release.apk |