From ab956f5b36ea579493564c9515431ef7356bd9f4 Mon Sep 17 00:00:00 2001 From: appujet Date: Mon, 29 Apr 2024 01:51:00 +0530 Subject: [PATCH] Update release-beta.yml workflow to use Java 17 and run Gradle dependencies --- .github/workflows/release-beta.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 240e196..7d7ffce 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -10,22 +10,33 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout Repository + uses: actions/checkout@v3 with: path: './' fetch-depth: 0 - - name: Set up java + + - name: Set up Java uses: actions/setup-java@v2 with: distribution: 'zulu' java-version: '17' + - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: dependencies + run: chmod +x ./gradlew + env: + CI: true + + - name: Run Gradle dependencies run: ./gradlew --no-daemon dependencies - - name: Release to github + env: + CI: true + + - name: Release to GitHub env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} RELEASE_TARGET: ${{ github.sha }} PRERELEASE: true run: ./gradlew --no-daemon build githubRelease + env: + CI: true \ No newline at end of file