2019-12-16 15:23:00 +01:00
|
|
|
name: Build EssentialsX
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 2.x
|
|
|
|
- mc/*
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 2.x
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Git repo
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Restore Maven cache
|
|
|
|
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
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
- name: Build with Maven
|
2020-10-03 17:40:11 +02:00
|
|
|
run: mvn package verify --file pom.xml
|
2019-12-16 15:23:00 +01:00
|
|
|
- name: Copy artifacts
|
|
|
|
run: mkdir -p ./out/ && cp -t ./out/ **/target/Essentials*.jar
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: Plugin jars
|
|
|
|
path: out/
|