2021-06-20 04:11:12 +02:00
|
|
|
name: ProtocolLib full build lifecycle
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-31 02:01:11 +02:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2021-06-20 04:11:12 +02:00
|
|
|
- name: Setup java
|
2022-07-31 02:01:11 +02:00
|
|
|
uses: actions/setup-java@v3
|
2021-06-20 04:11:12 +02:00
|
|
|
with:
|
2021-09-22 19:29:23 +02:00
|
|
|
distribution: 'temurin'
|
2021-11-30 20:10:03 +01:00
|
|
|
java-version: '17'
|
2022-07-31 02:01:11 +02:00
|
|
|
cache: 'maven'
|
2021-06-20 04:11:12 +02:00
|
|
|
|
|
|
|
- name: Run maven build lifecycle
|
|
|
|
run: mvn --batch-mode clean test package
|
|
|
|
|
|
|
|
- name: Upload plugin file
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-07-31 02:01:11 +02:00
|
|
|
name: ProtocolLib
|
|
|
|
path: target/ProtocolLib.jar
|