This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Fix citizens compatibility #434
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: WindSpigot Build and Upload | |
on: | |
push: | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 18.0.1 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 18.0.1 | |
server-id: github | |
cache: 'maven' | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn package --file pom.xml | |
- name: Upload Server Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: WindSpigot-server | |
path: WindSpigot-Server/target/WindSpigot.jar | |
- name: Upload API Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: WindSpigot-API | |
path: WindSpigot-API/target/WindSpigot-API.jar |