From 30ad6f1cef7bb2e71f8927171e158112b037c976 Mon Sep 17 00:00:00 2001 From: Emux Date: Tue, 12 Oct 2021 19:44:25 +0300 Subject: [PATCH] Update android.yml --- .github/workflows/android.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 592cfbe5..c3158680 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -18,6 +18,7 @@ jobs: with: java-version: '11' distribution: 'adopt' + cache: gradle - name: Android Build Tools env: @@ -29,3 +30,9 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + - name: Publish + if: github.event_name != 'pull_request' + env: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + run: ./gradlew -PSONATYPE_USERNAME="$SONATYPE_USERNAME" -PSONATYPE_PASSWORD="$SONATYPE_PASSWORD" uploadArchives