2022-04-08 22:52:58 -05:00

33 lines
713 B
YAML

name: Maven Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 2
command: mvn -B package --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: AuthmeVelocity
path: |
proxy/target/AuthMeVelocity-proxy.jar
spigot/target/AuthMeVelocity-spigot.jar