Skip to content

Publish to Google Play Closed Testing #36

Publish to Google Play Closed Testing

Publish to Google Play Closed Testing #36

Workflow file for this run

name: Publish to Google Play Closed Testing
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Fetch Master Branch
uses: actions/checkout@v3
- name: Set Up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Grant Gradle Rights
run: chmod +x ./gradlew
- name: Build Release Bundle with Gradle
run: ./gradlew clean bundlePlay -Pbase64EncodedPublicKey=${{secrets.PUBLIC_KEY}}
- name: Build Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/playRelease
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Upload Android Release to Play Store
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{secrets.SERVICE_ACCOUNT_JSON}}
packageName: com.flauschcode.broccoli
releaseFiles: app/build/outputs/bundle/playRelease/app-play-release.aab
track: alpha
whatsNewDirectory: whatsNewDirectory
- name: Create Release on GitHub
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
prerelease: true
body: 'Pre-release which has been published for alpha testing on the Play Store.'