From 2466d3a493d4e42726bf7e3cdb57e0ec22cbbfb2 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 19 Dec 2024 10:56:29 +0700 Subject: [PATCH] ci: Upload APK to artifact --- .github/workflows/build_push.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index c81a5504cf..f4e04b9288 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -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