Skip to content

Commit

Permalink
back
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed Apr 7, 2024
1 parent 66c669e commit a646cd8
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions .github/workflows/flutter-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- uses: ilharp/sign-android-release@v1
name: Sign app APK
id: sign_app_apk
id: sign_app
with:
releaseDir: build/app/outputs/apk/release
signingKey: ${{ secrets.KEYSTORE }}
Expand All @@ -70,13 +70,12 @@ jobs:
buildToolsVersion: 33.0.0



# Upload generated apk to the artifacts.
# - name: relase output
# uses: actions/upload-artifact@v1
# with:
# name: release-apk
# path: build/app/outputs/apk/release/app-release.apk
- name: relase output
uses: actions/upload-artifact@v1
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk

- name: create-release
id: create_release
Expand All @@ -98,31 +97,6 @@ jobs:
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 Bundle
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/[email protected]
env:
Expand Down

0 comments on commit a646cd8

Please sign in to comment.