diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index d91e411..6f0f162 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -60,7 +60,7 @@ jobs: - uses: ilharp/sign-android-release@v1 name: Sign app APK - id: sign_app + id: sign_app_apk with: releaseDir: build/app/outputs/apk/release signingKey: ${{ secrets.KEYSTORE }} @@ -70,6 +70,7 @@ jobs: buildToolsVersion: 33.0.0 + # Upload generated apk to the artifacts. # - name: relase output # uses: actions/upload-artifact@v1 @@ -94,10 +95,34 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: "build/app/outputs/apk/release/app-release.apk" + asset_path: ${{steps.sign_app.outputs.signedFile}} asset_name: reciper-release-${{ steps.version.outputs.version }}.apk asset_content_type: application/apk + - name: build appbundle + run: flutter build appbundle + + - uses: ilharp/sign-android-release@v1 + name: Sign app APK + id: sign_app_bundle + with: + releaseDir: build/app/outputs/bundle/release + signingKey: ${{ secrets.KEYSTORE }} + keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }} + keyStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }} + keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} + buildToolsVersion: 33.0.0 + + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{steps.sign_app.outputs.signedFile}} + asset_name: reciper-release-${{ steps.version.outputs.version }}.aab + asset_content_type: application/aab + - name: Publish release uses: eregon/publish-release@v1.0.6 env: