Skip to content

Commit

Permalink
Update deploy release actions (#3893)
Browse files Browse the repository at this point in the history
* ci: set status in progress for release APK in Google Play

Signed-off-by: andresmr <[email protected]>

* 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 <[email protected]>
Co-authored-by: Xavier Molloy <[email protected]>
  • Loading branch information
andresmr and xavimolloy authored Nov 20, 2024
1 parent fb48526 commit 02bc4d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ 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
working-directory: ./gradle
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'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02bc4d0

Please sign in to comment.