mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-03 16:13:28 +01:00
d745cfb184
* Add github actions workflow * Add jitpack.yml to configure java version
27 lines
573 B
YAML
27 lines
573 B
YAML
name: ProtocolLib full build lifecycle
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup java
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '16'
|
|
check-latest: true
|
|
|
|
- name: Run maven build lifecycle
|
|
run: mvn --batch-mode clean test package
|
|
|
|
- name: Upload plugin file
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ProtocolLib
|
|
path: target/ProtocolLib.jar
|