From 3ef34e438d0742d58ded0176f0727084607ad837 Mon Sep 17 00:00:00 2001 From: mlus <1319237806@qq.com> Date: Mon, 19 Feb 2024 17:28:55 +0800 Subject: [PATCH] Create build-1.18.yml --- .github/workflows/build-1.18.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-1.18.yml diff --git a/.github/workflows/build-1.18.yml b/.github/workflows/build-1.18.yml new file mode 100644 index 0000000..4dd64bf --- /dev/null +++ b/.github/workflows/build-1.18.yml @@ -0,0 +1,42 @@ +name: Build-1.18 + +on: + push: + branches: [ "1.18.2" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Make Gradle Wrapper Executable + run: chmod +x ./gradlew + working-directory: ${{ github.workspace }} + + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Build + id: build + uses: gradle/gradle-build-action@v2 + with: + arguments: build + env: + SNAPSHOT: true + + - name: Build Artifact + uses: actions/upload-artifact@v3 + with: + name: Player_Sync + path: | + build/libs/