mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-30 14:43:27 +01:00
29 lines
602 B
YAML
29 lines
602 B
YAML
name: ProtocolLib full build lifecycle
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup java
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
cache: 'maven'
|
|
|
|
- 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
|