From 886b08a91521381fcc7a8b05fbddf27ee34d58e8 Mon Sep 17 00:00:00 2001 From: zeng-git <95841646+zeng-github01@users.noreply.github.com> Date: Fri, 17 May 2024 19:37:54 +0800 Subject: [PATCH] Add automatic artifact builds on push (cherry picked from commit 5f20e3346cf973ab42da8f57c3c73bc83c972bf4) --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c7103f7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build + +on: [ push ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up OpenJDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' # You can choose other OpenJDK distributions. + - name: Build with Gradle + run: ./gradlew build # Ensure your gradlew script is executable + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: NAE2 + path: build/libs/*.jar # Make sure this path matches the location of your build artifacts \ No newline at end of file