Skip to content

android support

android support #10

Workflow file for this run

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
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/upload-artifact@v2
with:
name: Android-APK
path: build/app/outputs/flutter-apk/app-release.apk