Skip to content

Migrated to Gradle version catalog (#65) #68

Migrated to Gradle version catalog (#65)

Migrated to Gradle version catalog (#65) #68

name: Publish Internal Release
on:
push:
branches:
- master
paths:
- 'app/**'
- '*.gradle.kts'
- '*.properties'
- 'gradle/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
cache: 'gradle'
- name: Prepare Gradle secure file
run: |
echo 'signingKeystorePassword=${{ secrets.SIGNING_KEYSTORE_PASSWORD }}' >> local.properties
echo 'signingKeyAlias=${{ secrets.SIGNING_KEY_ALIAS }}' >> local.properties
echo 'signingKeyPassword=${{ secrets.SIGNING_KEY_PASSWORD }}' >> local.properties
- name: Build AAB
id: build_aab
run: |
echo "Building ${{ steps.create_release.outputs.tag_name }}..."
yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;34.0.0"
bash ./gradlew :app:increaseVersionCode :app:bundleRelease --stacktrace
- name: AAB Artifact
id: aab_artifact
uses: actions/upload-artifact@v4
with:
name: AAB Artifact
path: ./app/build/outputs/bundle/release/app-release.aab
- name: Commit version.properties
id: commit_version
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Increased Version Code
file_pattern: 'version.properties'
- name: Upload to Play Store
id: upload_play_store
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_GOOGLE_CLOUD_JSON }}
packageName: org.escalaralcoiaicomtat.android
releaseFiles: ./app/build/outputs/bundle/release/app-release.aab
track: internal
inAppUpdatePriority: 2
# mappingFile: ./base/build/outputs/mapping/release/mapping.txt
# whatsNewDirectory: ./changelog
status: completed