Created
October 4, 2020 22:39
-
-
Save zachisit/fc162a8dfcbc2f07675e64cdf5b3ae0d to your computer and use it in GitHub Desktop.
GitHub Action to build Android APK and save as a Release
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 APK Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Build APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: "1.17.5" | |
- name: Pub Get Packages | |
run: flutter pub get | |
- name: Build APK | |
run: flutter build apk --split-per-abi --release | |
- name: Build APPBUNDLE | |
run: flutter build appbundle --release | |
- name: Create Github Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/apk/release/*.apk,build/app/outputs/bundle/release/*.aab" | |
token: ${{ secrets.TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment