From bd498a5d0f594e7b07eb29ef294ad33a4acbc08e Mon Sep 17 00:00:00 2001 From: zeng-git <95841646+zeng-github01@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:17:51 +0800 Subject: [PATCH 1/3] Update action build script Add support for PR and fix a compatibility bug --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e495840f37d..f8a9da1e2a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [push] +on: [push, pull_request] jobs: build: @@ -12,8 +12,10 @@ jobs: 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 with: From e29150bc5d85f9e41c72214c7abd5295427b5cca Mon Sep 17 00:00:00 2001 From: zeng-git <95841646+zeng-github01@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:59:48 +0800 Subject: [PATCH 2/3] uses v4 action to avoid be deprecated --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8a9da1e2a5..f305e0be481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,9 +6,9 @@ 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. @@ -17,7 +17,7 @@ jobs: - name: Build with Gradle 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 From 805f4d920ac0486d512f7f9a041009637d3376e8 Mon Sep 17 00:00:00 2001 From: zeng-git <95841646+zeng-github01@users.noreply.github.com> Date: Sat, 13 Jul 2024 21:08:29 +0800 Subject: [PATCH 3/3] remove PR support --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f305e0be481..b1918bf7a36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [push, pull_request] +on: [push] jobs: build: