Skip to content

Bump app version

Bump app version #35

Workflow file for this run

name: Deploy release-alpha to Google Play
on:
push:
tags:
- "release/*"
jobs:
build:
name: Release Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
- name: Materialize sensitive info
run: |
.ci/materialize.sh $GOOGLE_SERVICES modules/app/google-services.json
.ci/materialize.sh $KEY_STORE_FILE keystore.jks
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
KEY_STORE_FILE: ${{ secrets.KEY_STORE_FILE }}
- name: Release tests
run: ./gradlew -Pci testReleaseUnitTest
env:
MAP_KEY: ${{ secrets.MAP_KEY }}
- name: Build Release AAB
run: ./gradlew -Pci :app:bundleRelease
env:
MAP_KEY: ${{ secrets.MAP_KEY }}
KEY_ALIAS: ${{ secrets.ALIAS }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Create service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
- name: Deploy to Google Play (ALPHA)
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: service_account.json
packageName: kekmech.ru.mpeiapp
releaseFiles: modules/app/build/outputs/bundle/release/app-release.aab
track: internal
status: completed
- name: Put release version from tag name to ENV
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/*/}" >> $GITHUB_ENV
- name: Send Telegram message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_BOT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: markdown
message: 📱 **MpeiX Android ${{ env.RELEASE_VERSION }}** has been deployed to Google Play