From 546318f738796088566252a6d0c6ab151d7b4377 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Tue, 17 Oct 2023 12:56:52 +0200 Subject: [PATCH] Added GH workflow for building --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ README.md | 6 +++--- gradlew | 0 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f054e95 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-22.04 + if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + check-latest: true + - name: Build with Gradle + run: ./gradlew build + - name: Upload Artifacts to GitHub + uses: actions/upload-artifact@v3 + with: + name: Artifacts + path: build/libs/ diff --git a/README.md b/README.md index f2548c7..4eca889 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ repositories { } dependencies { - implementation("net.raphimc:ViaAprilFools:2.0.9") // Get latest version from releases + implementation("net.raphimc:ViaAprilFools:x.x.x") // Get latest version from releases } ``` @@ -45,13 +45,13 @@ dependencies { net.raphimc ViaAprilFools - 2.0.9 + x.x.x ``` ### Jar File -If you just want the latest jar file you can download it from this [Jenkins](https://ci.viaversion.com/view/All/job/ViaAprilFools/). +If you just want the latest jar file you can download it from [GitHub Actions](https://github.com/RaphiMC/ViaAprilFools/actions/workflows/build.yml) or [Lenni0451's Jenkins](https://build.lenni0451.net/job/ViaAprilFools/). ## Usage ViaAprilFools requires you to have an already functional ViaVersion implementation for your platform. diff --git a/gradlew b/gradlew old mode 100644 new mode 100755