chore(ci): migrate to new Gradle actions

This commit is contained in:
Harsh Shandilya 2024-01-27 16:27:12 +05:30
parent 38f71460f0
commit 051b7ab2bb
4 changed files with 39 additions and 49 deletions

View file

@ -25,16 +25,18 @@ jobs:
distribution: temurin
java-version: 18
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3-beta
with:
cache-read-only: true
gradle-home-cache-cleanup: true
- name: Build release app
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
run: ./gradlew --no-configuration-cache --stacktrace collectReleaseBundle
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
ORG_GRADLE_PROJECT_VERSION_NAME: ${{ github.event.inputs.versionName }}
ORG_GRADLE_PROJECT_VERSION_CODE: ${{ github.event.inputs.versionCode }}
with:
arguments: --no-configuration-cache --stacktrace collectReleaseBundle
gradle-home-cache-cleanup: true
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: Upload app bundle
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0