From 6ecbec0057359321f30f99f7de8d16814f65a3a0 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Tue, 5 Nov 2024 14:50:31 +0530 Subject: [PATCH] Fixed: APK files missing at releases since v3.8.1 --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82364d338f..c0c2e8304b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,9 @@ jobs: java-version: 17 distribution: temurin + - name: Set tag variable + run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV + - name: Retrieve secrets to files env: KEYSTORE: ${{ secrets.keystore }} @@ -46,13 +49,14 @@ jobs: # ./gradlew generateVersionCodeAndName # scp -P 30022 -vrp -i ssh_key -o StrictHostKeyChecking=no VERSION_INFO ci@master.download.kiwix.org:/data/download/release/kiwix-android/ - - name: Publish to GitHub + - name: Upload APKs to Release uses: ncipollo/release-action@v1 with: - artifacts: "app/build/outputs/apk/release/**" + artifacts: "app/build/outputs/apk/standalone/**" token: ${{ secrets.GITHUB_TOKEN }} - draft: true - prerelease: true + tag: ${{ env.TAG }} + allowUpdates: true + replacesArtifacts: true - name: Publish bundle to Google Play env: