v2025.01.2230 #665
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: Release - Deploy Android | |
on: | |
release: | |
types: | |
- released | |
jobs: | |
deploy: | |
name: Build and upload to Play Store | |
runs-on: ubuntu-latest | |
environment: deploy | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y.%m')" | |
- name: Compute unique version code | |
id: version | |
run: echo "::set-output name=version::$(git rev-list HEAD --count)" | |
- name: Build app bundle | |
run: | | |
./gradlew bundleRelease \ | |
"-PreleaseKeystorePassword=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}" \ | |
"-PexternalVersionName=${{ steps.date.outputs.date }}.${{ steps.version.outputs.version }}" \ | |
"-PexternalVersionCode=${{ steps.version.outputs.version }}" \ | |
"-PenableLogging=false" | |
- name: Upload app bundle to GitHub | |
uses: actions/upload-artifact@v4.6.0 | |
with: | |
name: apk | |
path: app-android/build/outputs/bundle/release/app-android-release.aab | |
- name: Publish nightly build to internal track | |
uses: r0adkll/upload-google-play@v1 | |
with: | |
track: internal | |
status: completed | |
packageName: fr.outadoc.justchatting | |
releaseFiles: app-android/build/outputs/bundle/release/app-android-release.aab | |
mappingFile: app-android/build/outputs/mapping/release/mapping.txt | |
serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }} |