Update android-release.yml upload app #5
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: Android Release | |
# 1 | |
on: | |
# 2 | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# 3 | |
workflow_dispatch: | |
# 4 | |
jobs: | |
# 5 | |
build: | |
# 6 | |
runs-on: ubuntu-latest | |
# 7 | |
steps: | |
# 8 | |
- uses: actions/checkout@v3 | |
# 9 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: "12.x" | |
# 10 | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.16.5' | |
channel: 'stable' | |
- run: flutter --version | |
# 12 | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Start build apk | |
run: flutter build apk --no-tree-shake-icons | |
# Runs a set of commands using the runners shell | |
- name: Start release build | |
run: flutter build appbundle --no-tree-shake-icons | |
# Upload generated apk to the artifacts. | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: release-apk | |
path: build/app/outputs/flutter-apk/app-release.apk |