1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Switch from maven to gradle in workflow (#266)

This commit is contained in:
Hugo Planque
2022-02-12 15:10:03 +01:00
committed by GitHub
parent 9ee68aca9f
commit 3950824532

View File

@@ -1,6 +1,6 @@
name: Build Pull Request
on: [pull_request]
on: [ pull_request ]
jobs:
build:
@@ -8,34 +8,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: '8'
cache: 'gradle'
- name: Build with Maven
run: mvn -B package
run: ./gradlew build
- name: Archive artifacts (Floodgate Bungee)
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Bungee
path: bungee/target/floodgate-bungee.jar
path: bungee/build/libs/floodgate-bungee.jar
- name: Archive artifacts (Floodgate Spigot)
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Spigot
path: spigot/target/floodgate-spigot.jar
path: spigot/build/libs/floodgate-spigot.jar
- name: Archive artifacts (Floodgate Velocity)
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Velocity
path: velocity/target/floodgate-velocity.jar
path: velocity/build/libs/floodgate-velocity.jar