From 10c5152dcbe3c083c3af6e241fc52bf35d09a4bc Mon Sep 17 00:00:00 2001 From: Pavel Kunyavskiy Date: Sat, 24 Feb 2024 15:52:42 +0100 Subject: [PATCH] Upgrade gradle build action. --- .github/workflows/release.yml | 22 +++++++++++++++------- .github/workflows/test.yml | 8 +++++--- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c36f2aab..42ace0e47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,22 +26,30 @@ jobs: name: Create artifacts from master runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: actions/setup-node@v3 + - name: Checkout + uses: actions/checkout@master + + - name: Setup node + uses: actions/setup-node@v3 with: node-version: '20' cache: 'npm' cache-dependency-path: 'src/frontend/package-lock.json' - - uses: actions/setup-java@master + + - name: Setup Java + uses: actions/setup-java@master with: distribution: adopt java-version: 17 - - uses: gradle/gradle-build-action@v2 - with: - arguments: release --scan -Pnpm.download=false -Pbuild_version=${{ github.event.inputs.version }} -i + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Build with gradle + run: ./gradlew release --scan -Pnpm.download=false -Pbuild_version=${{ github.event.inputs.version }} -i - - uses: actions/upload-artifact@master + - name: Upload artifacts + uses: actions/upload-artifact@master with: name: artifacts path: artifacts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 393c109ee..e3c221cf0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,9 +44,11 @@ jobs: distribution: adopt java-version: 17 - - uses: gradle/gradle-build-action@v2.4.2 - with: - arguments: build release apiCheck --scan -Pnpm.download=false -i + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Build with gradle + run: ./gradlew build release apiCheck --scan -Pnpm.download=false -i - uses: actions/upload-artifact@v3 if: always()