Update build_and_release_android.yml #7
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: Build And Release Android | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2.12.0 | |
with: | |
flutter-version: '3.17.0-1.0.pre.38' | |
channel: 'master' | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4.0.0 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
- run: flutter pub get | |
- run: flutter build apk --release | |
- name: Release | |
uses: ncipollo/release-action@v1.13.0 | |
with: | |
artifacts: "build/app/outputs/flutter-apk/app-release.apk" | |
token: ${{ secrets.YOUR_GITHUB_TOKEN }} | |