From 02bc4d0ddfc77836bd870a5562e3219cb05e61f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Wed, 20 Nov 2024 10:36:42 +0100 Subject: [PATCH] Update deploy release actions (#3893) * ci: set status in progress for release APK in Google Play Signed-off-by: andresmr * ci: update check out and set up java actions, address set output deprecated warning * ci: remove incorrect character * ci: increase heap memory size * ci: modify read version name --------- Signed-off-by: andresmr Co-authored-by: Xavier Molloy --- .github/workflows/deploy-release.yml | 9 +++++---- gradle.properties | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 088b649b6e..1ec2d7a528 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -18,12 +18,12 @@ on: description: 'tag' required: true type: string - + jobs: Build-Apk: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set repository name as env variable run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV - name: Read version name from file @@ -31,7 +31,7 @@ jobs: id: read-version run: echo "::set-output name=vName::$(grep 'vName' libs.versions.toml | awk -F' = ' '{print $2}' | tr -d '"')" - name: Set Up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' @@ -61,11 +61,12 @@ jobs: packageName: com.dhis2 releaseFiles: ${{ env.main_project_module }}/build/outputs/apk/dhisPlayServices/release/dhis2-v${{ steps.read-version.outputs.vName }}-googlePlay.apk track: production + status: inProgress whatsNewDirectory: whatsnew userFraction: 0.99 - name: Upload to Github - if: ${{ (inputs.github_release }} + if: ${{ inputs.github_release }} uses: ncipollo/release-action@v1 with: allowUpdates: true diff --git a/gradle.properties b/gradle.properties index aa56d1b138..634ac6504f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx3096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096M -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit