devops: fix upload_playstore_internal lane to use bundle #16
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: Android CI | |
on: | |
push: | |
branches: [ research/devops ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
upload-play-internal: | |
runs-on: ubuntu-latest | |
env: | |
KEYSTORE_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
KEYSTORE_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_STORE_PASSPHRASE }} | |
KEYSTORE_STORE_PASSWORD: ${{ secrets.SIGNING_KEY_STORE_PASSPHRASE }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
# Decrypt release keystore and release properties file from github secrets | |
- name: Decrypt files | |
id: decrypt_files | |
run: | | |
# Creating encrypted keystore file from secret saved on GitHub | |
echo "${{ secrets.RELEASE_KEYSTORE }}" > release.jks.asc | |
# Decrypting keystore from passphrase(saved as secret) used earlier for encryption | |
gpg -d --passphrase "${{ secrets.RELEASE_KEYSTORE_DECRYPT_PASSPHRASE }}" --batch release.jks.asc > config/release_keystore.jks | |
# Creating encrypted play service account file from saved secret. | |
echo "${{ secrets.PLAY_SERVICE_ACCOUNT}}" > api-7730997362032805480-382486-3308f76b1b64.json.asc | |
# Decrypting play service account with passphrase(saved as secret) used earlier for encryption | |
gpg -d --passphrase "${{ secrets.PLAY_SERVICE_ACCOUNT_DECRYPT_PASSPHRASE }}" --batch api-7730997362032805480-382486-3308f76b1b64.json.asc > config/api-7730997362032805480-382486-3308f76b1b64.json | |
echo "storeFile=config/release_keystore.jks" >> keystore.properties | |
echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> keystore.properties | |
echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> keystore.properties | |
echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> keystore.properties | |
# Setting up ruby on the machine | |
- name: Set up Ruby | |
id: set_up_ruby | |
uses: ruby/[email protected] | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 17.0.6+10 | |
distribution: adopt | |
cache: gradle | |
# - name: Build with Gradle | |
# run: ./gradlew build | |
# - name: Upload a Build Artifact | |
# uses: actions/[email protected] | |
# with: | |
# name: app | |
# path: app/build/outputs/apk/debug/app-debug.apk | |
# - name: Test fastlane | |
# id: test_fastlane | |
# run: | | |
# bundle exec fastlane run validate_play_store_json_key json_key:config/api-7730997362032805480-382486-3308f76b1b64.json | |
# Run Unit Test | |
# - name: Run unit tests | |
# id: run_unit_tests | |
# run: | | |
# ./gradlew testDebugUnitTest | |
- name: Upload to internal app sharing | |
id: internal_app_share | |
run: | | |
bundle exec fastlane upload_playstore_internal | |