mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-15 10:45:36 +01:00
Added GH workflow for building
This commit is contained in:
parent
f890fd0c79
commit
cede4d0599
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal 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/
|
@ -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>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user