Uploading release APK in Github release instead of standalone APK.

* To resolve the publishing issue on `IzzyOnDroid`, we are now uploading the `Release` APK(with `org.kiwix.kiwixmobile` package name) to the GitHub release, allowing `IzzyOnDroid` to easily retrieve the APK and upload it to their platform.
This commit is contained in:
MohitMaliFtechiz 2024-11-28 11:36:17 +05:30 committed by Kelson
parent 116180e6f0
commit b477f5b3bf

View File

@ -38,7 +38,7 @@ jobs:
UNIVERSAL_RELEASE_APK: app/build/outputs/apk/standalone/*universal*.apk
ARCHIVE_NAME: kiwix-${{ github.event.release.tag_name }}.apk
run: |
./gradlew assembleStandalone
./gradlew assembleStandalone assembleRelease
cp ${UNIVERSAL_RELEASE_APK} ${ARCHIVE_NAME}
scp -P 30022 -vrp -i ssh_key -o StrictHostKeyChecking=no "$ARCHIVE_NAME" ci@master.download.kiwix.org:/data/download/release/kiwix-android/
@ -52,7 +52,7 @@ jobs:
- name: Upload APKs to Release
uses: ncipollo/release-action@v1
with:
artifacts: "app/build/outputs/apk/standalone/**"
artifacts: "app/build/outputs/apk/release/**"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.TAG }}
allowUpdates: true