v3.6.1 #25
Workflow file for this run
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 example apk | |
on: | |
release: | |
types: | |
- created | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build-apk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- run: flutter doctor -v | |
name: Flutter info | |
- run: flutter build apk --release | |
name: Build apk | |
working-directory: ${{ github.workspace }}/example | |
- name: Upload apk to release ${{ github.event.release.tag_name }} | |
run: | | |
gh release upload ${{ github.event.release.tag_name }} build/app/outputs/flutter-apk/*.apk | |
echo "Show apk download url: " | |
gh release view ${{ github.event.release.tag_name }} --json assets --jq '.assets.[].url' | |
working-directory: ${{ github.workspace }}/example | |
permissions: | |
contents: write |