Generated dummy release APKs along with the dummy bundle to have them… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate dummy bundle and APK | |
# The workflow will trigger when the `dummy_bundle` tag is pushed. | |
on: | |
push: | |
tags: | |
- 'dummy_bundle' # dummy_bundle Tag | |
jobs: | |
publish_dummy_bundle_and_apk: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Preparing signing material | |
env: | |
KEYSTORE: ${{ secrets.keystore }} | |
run: | | |
echo "$KEYSTORE" | base64 -d > kiwix-android.keystore | |
- name: Generate dummy Bundle and APKs | |
env: | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
run: | | |
./gradlew bundlePlayStore assembleRelease --scan | |
- name: Get Bundle and APKs name and path | |
id: get-bundle-and-apk-paths | |
run: | | |
BUNDLE_PATH="app/build/outputs/bundle/playStore/kiwix-playStore.aab" | |
BUNDLE_NAME="PlayStoreDummyBundle.aab" | |
echo "bundle_path=$BUNDLE_PATH" >> $GITHUB_ENV | |
echo "bundle_name=$BUNDLE_NAME" >> $GITHUB_ENV | |
APK_DIR="app/build/outputs/apk/release/" | |
echo "apk_dir=$APK_DIR" >> $GITHUB_ENV | |
- name: Upload Bundle as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.bundle_name }} | |
path: ${{ env.bundle_path }} | |
- name: Upload All Release APKs as artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ReleaseApks | |
path: ${{ env.apk_dir }}*.apk | |