Skip to content

Commit

Permalink
Use official github actions to create release. (#32)
Browse files Browse the repository at this point in the history
* Setup signingConfigs with my keystore file.

* Create release.yml script that will build apk file and do release everytime that is a push on the main branch.

* Fix gradlew no permission error.

* Use java 17 on script.

* Use variables from github secrets.

* decode google-services.json file

* List output apk-s. and also upload the apk regardless it's name

* add signing config on release build type.

* update script to decode keystore file.

* add logging for keystore existence

* Add script to automatically release the app on github. Also add latest git commit hash to apk file name.

* replace ghaction-create-release with actions/create-release

---------

Co-authored-by: Diar Gegaj <[email protected]>
  • Loading branch information
diargegaj and Diar Gegaj authored Oct 11, 2023
1 parent 9221027 commit 26638c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,23 @@ jobs:

- name: Create Release
id: create_release
uses: ghaction-create-release@v1
uses: actions/create-release@v1
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false
title: Release ${{ github.ref }}
body: Description of the release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
id: upload_release_asset
uses: ghaction-upload-release-asset@v1
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/app/build/outputs/apk/release/app-release-${{ steps.get_version.outputs.sha_short }}.apk
asset_name: app-release-${{ steps.get_version.outputs.sha_short }}.apk
asset_content_type: application/vnd.android.package-archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 26638c1

Please sign in to comment.