ProtocolLib/.github/workflows/build.yml

29 lines
602 B
YAML
Raw Normal View History

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
- name: Setup java
2022-07-31 02:01:11 +02:00
uses: actions/setup-java@v3
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'
- 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