ProtocolLib/.github/workflows/build.yml

29 lines
610 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'
2023-04-15 23:09:15 +02:00
java-version: '19'
cache: 'gradle'
2023-04-15 23:09:15 +02:00
- name: Run gradle build lifecycle
run: ./gradlew build shadowJar --no-daemon
- name: Upload plugin file
uses: actions/upload-artifact@v2
with:
2022-07-31 02:01:11 +02:00
name: ProtocolLib
2023-04-15 23:09:15 +02:00
path: build/libs/ProtocolLib.jar