mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-22 00:11:37 +00:00
Switch from maven to gradle in workflow (#266)
This commit is contained in:
35
.github/workflows/pullrequest.yml
vendored
35
.github/workflows/pullrequest.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
name: Build Pull Request
|
name: Build Pull Request
|
||||||
|
|
||||||
on: [pull_request]
|
on: [ pull_request ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -8,34 +8,35 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
distribution: 'temurin'
|
||||||
|
java-version: '8'
|
||||||
|
cache: 'gradle'
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package
|
run: ./gradlew build
|
||||||
|
|
||||||
- name: Archive artifacts (Floodgate Bungee)
|
- name: Archive artifacts (Floodgate Bungee)
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v2
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
name: Floodgate Bungee
|
name: Floodgate Bungee
|
||||||
path: bungee/target/floodgate-bungee.jar
|
path: bungee/build/libs/floodgate-bungee.jar
|
||||||
|
|
||||||
- name: Archive artifacts (Floodgate Spigot)
|
- name: Archive artifacts (Floodgate Spigot)
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v2
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
name: Floodgate Spigot
|
name: Floodgate Spigot
|
||||||
path: spigot/target/floodgate-spigot.jar
|
path: spigot/build/libs/floodgate-spigot.jar
|
||||||
|
|
||||||
- name: Archive artifacts (Floodgate Velocity)
|
- name: Archive artifacts (Floodgate Velocity)
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v2
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
name: Floodgate Velocity
|
name: Floodgate Velocity
|
||||||
path: velocity/target/floodgate-velocity.jar
|
path: velocity/build/libs/floodgate-velocity.jar
|
||||||
Reference in New Issue
Block a user