diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..9b7ee9bb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +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 diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..fd424b1a --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +before_install: + - sdk install java 16.0.1-adpt