From 2c6b49c4885adc0f49436091feca291a29dd1fb7 Mon Sep 17 00:00:00 2001 From: BianXiao <137746769+mcbianxiao@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:23:24 +0800 Subject: [PATCH] Update build-release.yml --- .github/workflows/build-release.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index b35b681655..1f7b5d5813 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -11,15 +11,20 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout sources - uses: actions/checkout@v3 - - name: Set up JDK - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - distribution: 'temurin' + distribution: temurin java-version: 21 - - name: Build artifacts + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + cache-read-only: true + + - name: Execute Gradle build run: ./gradlew build -Pbuild.release=true + - name: Upload assets to GitHub uses: AButler/upload-release-assets@v2.0 with: