mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
ci: Upload APK to artifact
This commit is contained in:
parent
bf8eccc186
commit
2466d3a493
1 changed files with 7 additions and 0 deletions
7
.github/workflows/build_push.yml
vendored
7
.github/workflows/build_push.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue