Bump archive from 3.1.2 to 3.3.8 #12
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 APKs | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create tag | |
id: tag | |
uses: jacopocarlini/action-autotag@master | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Display tag name | |
run: echo ${{ steps.tag.outputs.tagname }} | |
- name: Display version from pubspec.yaml | |
run: echo ${{ steps.tag.outputs.version }} | |
- name: Setup Java JDK | |
if: ${{ steps.tag.outputs.tagname }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: "8.x" | |
- name: Setup Flutter action | |
if: ${{ steps.tag.outputs.tagname }} | |
uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: "2.2.x" | |
- name: Flutter pub get | |
if: ${{ steps.tag.outputs.tagname }} | |
run: flutter pub get | |
- name: Flutter build split apk releases | |
if: ${{ steps.tag.outputs.tagname }} | |
run: flutter build apk --release --split-per-abi | |
- name: Move apks to github releases | |
if: ${{ steps.tag.outputs.tagname }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/apk/release/*.apk" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit: main | |
tag: ${{ steps.tag.outputs.version }} | |
body: ${{ github.event.head_commit.message }} | |
continue-on-error: true |