Skip to content

Commit

Permalink
Added Get APK path for extracting the generated APK path.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 12, 2023
1 parent 73bb8b4 commit f466ad5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Custom App

on:
release:
types: [published]
types: [ published ]
branches:
- main

Expand Down Expand Up @@ -84,11 +84,15 @@ jobs:
cd kiwix-android
eval "./gradlew assemble${TAG^}Release"
- name: Get APK path
id: apk-path
run: |
APK_PATH="kiwix-android/custom/build/outputs/apk/${TAG}/release/*universal*.apk"
echo "::set-output name=apk_path::$APK_PATH"
- name: Upload APK as an artifact
uses: actions/upload-artifact@v2
env:
UNIVERSAL_APK_NAME: custom-${TAG}-release.apk
UNIVERSAL_RELEASE_APK: kiwix-android/custom/build/outputs/apk/dwds/release/custom-dwds-universal-release.apk
with:
name: $UNIVERSAL_APK_NAME
path: kiwix-android/custom/build/outputs/apk/dwds/release/custom-dwds-universal-release.apk
name: "Dummy APK for play store"
path: ${{ steps.apk-path.outputs.apk_path }}

0 comments on commit f466ad5

Please sign in to comment.