0.18.0 #34
Workflow file for this run
This file contains hidden or 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: Add Fat APK for Beta build | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: "ubuntu-latest" | |
| environment: Android release | |
| permissions: write-all | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: actions/[email protected] | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set release tag name | |
| run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - run: flutter pub get | |
| - name: Run tests | |
| run: | | |
| bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh) | |
| flutter test | |
| - name: Setup secrets | |
| run: | | |
| echo "${{ secrets.SIGNING_KEY_PROPERTIES }}" > ./android/key.properties | |
| echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > ./android/flow-upload-keystore.jks | |
| - name: Build fat APK | |
| run: flutter build apk --release --no-tree-shake-icons | |
| - name: Upload file to release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release upload ${{ env.RELEASE_TAG }} ./build/app/outputs/flutter-apk/app-release.apk | |
| gh release upload ${{ env.RELEASE_TAG }} ./build/app/outputs/flutter-apk/app-release.apk.sha1 |