Skip to content

Instantly share code, notes, and snippets.

@iamEtornam
Created December 12, 2022 23:16
Show Gist options
  • Save iamEtornam/a6801d8d5bf679c9284b9702fbabbc8b to your computer and use it in GitHub Desktop.
Save iamEtornam/a6801d8d5bf679c9284b9702fbabbc8b to your computer and use it in GitHub Desktop.
Deploy Flutter apps to PlayStore, AppleStore and Huawei AppGallery. This was generated by ChatGPT
name: Deploy Flutter Appbundle to Play Store
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set up Flutter
uses: subosito/flutter-action@v1
with:
channel: stable
- name: Build appbundle
run: flutter build appbundle
- name: Deploy to Play Store
uses: r0adkll/playstore-deploy@v1
with:
key: ${{ secrets.PLAY_STORE_KEY_FILE }}
track: internal
apk: build/app/outputs/bundle/release/app.aab
name: Build and Deploy to Huawei AppGallery
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
channel: stable
- name: Build App Bundle
run: flutter build appbundle
- name: Sign in to Huawei AppGallery Connect
uses: Huawei-AppGallery/actions/login@v1
with:
username: ${{ secrets.HUAWEI_USERNAME }}
password: ${{ secrets.HUAWEI_PASSWORD }}
- name: Upload to Huawei AppGallery
uses: Huawei-AppGallery/actions/upload-appbundle@v1
with:
apk_path: build/app/outputs/bundle/release/app-release.aab
name: Build and Deploy to App Store
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
channel: stable
- name: Build iOS App
run: flutter build ios --release
- name: Install Fastlane
run: gem install fastlane
- name: Set up Fastlane
run: fastlane init
- name: Upload to App Store
run: fastlane ios deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment