Skip to content

Commit

Permalink
Merge branch 'beta' of github.com:Muhammed-Rahif/Islam into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Apr 10, 2023
2 parents 27f11a8 + 5c43bd6 commit b2fc970
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup node environment
uses: actions/setup-node@v3
with:
Expand All @@ -29,5 +31,8 @@ jobs:
TELEGRAM_BOT_ID: ${{ secrets.TELEGRAM_BOT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_BOT_API_KEY: ${{ secrets.TELEGRAM_BOT_API_KEY }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_FILE_BASE64: ${{ secrets.KEYSTORE_FILE_BASE64 }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
run: |
yarn semantic-release
7 changes: 3 additions & 4 deletions scripts/build/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ cd android
chmod +x gradlew
./gradlew assembleDebug
./gradlew assembleRelease
cd ../
echo $KEYSTORE_FILE_BASE64 | base64 --decode > release-key.keystore
jarsigner -keystore release-key.keystore app/build/outputs/apk/release/app-release-unsigned.apk $KEYSTORE_ALIAS -storepass $KEYSTORE_PASS
zipalign 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release.apk
echo "$KEYSTORE_FILE_BASE64" | base64 --decode > release-key.keystore
$ANDROID_HOME/build-tools/30.0.3/zipalign -v 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release.apk
$ANDROID_HOME/build-tools/30.0.3/apksigner sign --ks release-key.keystore --ks-key-alias $KEYSTORE_ALIAS --ks-pass pass:$KEYSTORE_PASS app/build/outputs/apk/release/app-release.apk
cd ../
2 changes: 1 addition & 1 deletion scripts/telegram-bot/success-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ We encourage all developers, testers, and users to <a href="${downloadUrl}">down
});

await bot.telegram.sendDocument(toTelegramId, {
source: `android/app/build/outputs/apk/debug/app-release.apk`,
source: `android/app/build/outputs/apk/release/app-release.apk`,
filename: `app-release-${versionName}.apk`,
});

Expand Down

0 comments on commit b2fc970

Please sign in to comment.