From d79c69050ef24d50e11d19bbedc8d0903e4c54b4 Mon Sep 17 00:00:00 2001 From: Anil Kumar Beesetti <66936649+anilbeesetti@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:09:51 +0530 Subject: [PATCH] Chore: Fix publish action (#1174) --- .../workflows/update_version_and_publish.yaml | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_version_and_publish.yaml b/.github/workflows/update_version_and_publish.yaml index 9ce0dbf32..57b1ce562 100644 --- a/.github/workflows/update_version_and_publish.yaml +++ b/.github/workflows/update_version_and_publish.yaml @@ -75,8 +75,27 @@ jobs: git config user.email "actions@github.com" git add . git commit -m "Release version ${{ env.VERSION_NAME }}" || echo "No changes to commit" + git config push.autoSetupRemote true git push --set-upstream origin ${BRANCH_NAME} + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3.0 + bundler-cache: true + + - name: Set Up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + validate-wrappers: true + gradle-home-cache-cleanup: true + - name: Decode keystore file uses: timheuer/base64-to-file@v1 id: keystore @@ -127,5 +146,4 @@ jobs: files: app/build/outputs/apk/release/nextplayer* draft: true name: v${{ env.VERSION_NAME }} - body: | - Your release notes go here. + generate_release_notes: true