Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
starry-shivam authored Jul 9, 2024
1 parent 384a7c8 commit f6ffefb
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,25 @@ jobs:

- name: Build APK
id: build
shell: bash
run: |
./gradlew assembleRelease
echo "Listing contents of app/build/outputs/apk/release:"
ls -l app/build/outputs/apk/release/
echo "Listing contents of app/build/outputs/apk:"
ls -l app/build/outputs/apk/
run: bash ./gradlew assembleRelease

- name: Sign APK
id: sign_apk
shell: bash
run: |
APK_FILE=app/build/outputs/apk/release/app-release-unsigned.apk
# Get the tag version
TAG_VERSION=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
# Set the APK file path
APK_FILE="app/build/outputs/apk/release/Myne-v${TAG_VERSION}.apk"
# Check if file exists
if [ ! -f "$APK_FILE" ]; then
echo "APK file not found: $APK_FILE"
echo "Contents of app/build/outputs/apk/release:"
ls -l app/build/outputs/apk/release/
exit 1
fi
echo "Found APK file: $APK_FILE"
SIGNED_APK_FILE=app/build/outputs/apk/release/app-release-signed.apk
echo "${{ secrets.BASE64KEY }}" | base64 --decode > /tmp/signingkey.jks
apksigner=${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools/ | tail -1)/apksigner
Expand Down

0 comments on commit f6ffefb

Please sign in to comment.