ci: Upload APK to artifact

This commit is contained in:
Ahmad Ansori Palembani 2024-12-19 10:56:29 +07:00
parent bf8eccc186
commit 2466d3a493
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -170,6 +170,7 @@ jobs:
set -e
dir="app/build/outputs/apk/standard/${{ steps.version_stage.outputs.STAGE }}"
echo "APK_DIR=$dir" >> $GITHUB_ENV
mv $dir/app-standard-universal-*-signed.apk yokai-${{ env.VERSION_TAG }}.apk
sha=`sha256sum yokai-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'`
@ -191,6 +192,12 @@ jobs:
sha=`sha256sum yokai-x86_64-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'`
echo "APK_X86_64_SHA=$sha" >> $GITHUB_ENV
- name: Upload to artifact
if: env.VERSION_TAG != ''
uses: actions/upload-artifact@v4
with:
path: ${{ env.APK_DIR }}/yokai-*
- name: Create Release
if: startsWith(env.VERSION_TAG, 'v')
uses: softprops/action-gh-release@v2