Added GH workflow for building

This commit is contained in:
RaphiMC 2023-10-17 13:18:46 +02:00
parent f890fd0c79
commit cede4d0599
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
3 changed files with 28 additions and 3 deletions

25
.github/workflows/build.yml vendored Normal file
View File

@ -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/

View File

@ -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 {
<dependency>
<groupId>net.raphimc</groupId>
<artifactId>ViaProxy</artifactId>
<version>3.0.19</version> <!-- Get latest version from releases -->
<version>x.x.x</version> <!-- Get latest version from releases -->
</dependency>
</dependencies>
```

0
gradlew vendored Normal file → Executable file
View File