mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Build Pull Request
|
|
|
|
on: [ pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository and submodules
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
cache: 'gradle'
|
|
|
|
- name: Build
|
|
run: ./gradlew build
|
|
|
|
- name: Archive artifacts (Floodgate Bungee)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Floodgate Bungee
|
|
path: bungee/build/libs/floodgate-bungee.jar
|
|
|
|
- name: Archive artifacts (Floodgate Spigot)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Floodgate Spigot
|
|
path: spigot/build/libs/floodgate-spigot.jar
|
|
|
|
- name: Archive artifacts (Floodgate Velocity)
|
|
uses: actions/upload-artifact@v2
|
|
if: success()
|
|
with:
|
|
name: Floodgate Velocity
|
|
path: velocity/build/libs/floodgate-velocity.jar
|