Skip to content

We can store the state for the SignUpScreen into the ViewModel #20

We can store the state for the SignUpScreen into the ViewModel

We can store the state for the SignUpScreen into the ViewModel #20

Workflow file for this run

name: Deploy To Google Play
on:
push:
branches: [main]
jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Run unit tests
run: ./gradlew clean testDebug
distribute:
name: Distribute bundle to Google Play
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Version Bump
uses: chkfung/[email protected]
with:
gradlePath: app/build.gradle.kts
versionCode: ${{ github.run_number }}
- name: Assemble Release Bundle
run: ./gradlew bundleRelease
- name: Sign Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
alias: ${{ secrets.ANDROID_DEVS_ALIAS }}
keyPassword: ${{ secrets.ANDROID_DEVS_ALIAS_PASSWORD }}
- name: Setup Authorization with Google Play Store
run: echo '${{ secrets.PLAY_AUTH_JSON }}' > service_account.json
- name: Deploy bundle to Google Play
uses: r0adkll/[email protected]
with:
serviceAccountJson: service_account.json
packageName: nl.jovmit.androiddevs
releaseFiles: app/build/outputs/bundle/release/app-release.aab
track: 'internal'
status: 'completed'
whatsNewDirectory: whatsNew/