Update README.md #47
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: subosito/flutter-action@v2 | |
with: | |
# 11 | |
flutter-version: "3.0.0" | |
channel: 'stable' | |
# 12 | |
- name: Upgrade Flutter | |
run: flutter upgrade | |
# 13 | |
- name: Create .ENV file | |
run: touch .env | |
# 14 | |
- name: Get dependencies | |
run: flutter pub get | |
# Runs a set of commands using the runners shell | |
- name: Start release build | |
run: flutter build apk --release |