From cede4d05994a6f54b5ab678bdb483d17fe9c5490 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:18:46 +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 5162253..e18dad1 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ ViaProxy supports joining to any of the listed server version from any of the li ## Releases ### Executable Jar File -If you want the executable jar file you can download a stable release from [GitHub](https://github.com/ViaVersion/ViaProxy/releases/latest) or the latest dev version from this [Jenkins](https://ci.viaversion.com/view/All/job/ViaProxy/). +If you want the executable jar file you can download a stable release from [GitHub Releases](https://github.com/ViaVersion/ViaProxy/releases/latest) or the latest dev version from [GitHub Actions](https://github.com/RaphiMC/ViaProxy/actions/workflows/build.yml) or the [ViaVersion Jenkins](https://ci.viaversion.com/view/All/job/ViaProxy/). ### Gradle/Maven To use ViaProxy with Gradle/Maven you can use the ViaVersion maven server: @@ -37,7 +37,7 @@ repositories { } dependencies { - implementation("net.raphimc:ViaProxy:3.0.19") // Get latest version from releases + implementation("net.raphimc:ViaProxy:x.x.x") // Get latest version from releases } ``` @@ -53,7 +53,7 @@ dependencies { net.raphimc ViaProxy - 3.0.19 + x.x.x ``` diff --git a/gradlew b/gradlew old mode 100644 new mode 100755