Fix loading world on Paper (#165) #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenInv CI | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
# Enable running CI via other Actions, i.e. for drafting releases and handling PRs. | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
# Install Spigot dependencies if necessary. | |
- name: Install Spigot Dependencies | |
run: . scripts/install_spigot_dependencies.sh | |
- name: Build With Maven | |
run: mvn -e clean package -am -P all | |
# Upload artifacts | |
- name: Upload Distributable Jar | |
id: upload-final | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./target/OpenInv.jar | |
- name: Upload API Jar | |
id: upload-api | |
uses: actions/upload-artifact@v3 | |
with: | |
name: api | |
path: ./api/target/openinvapi*.jar |