From 2141ffe7f0223641c9c79038da72246dc4ec19d0 Mon Sep 17 00:00:00 2001 From: zeng-git <95841646+zeng-github01@users.noreply.github.com> Date: Thu, 13 Mar 2025 14:22:09 +0800 Subject: [PATCH] Update build actions (#475) --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e495840f3..b1918bf7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,16 +6,18 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up OpenJDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' # You can choose other OpenJDK distributions. + - name: Update Build Script (Before Build) + run: ./gradlew updateBuildScript - name: Build with Gradle - run: ./gradlew build # Ensure your gradlew script is executable + run: ./gradlew build - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: AE2-UEL path: build/libs/*.jar # Make sure this path matches the location of your build artifacts \ No newline at end of file