31 lines
634 B
YAML
31 lines
634 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: 'gradle'
|
|
|
|
- name: Build with Gradle
|
|
uses: nick-invision/retry@v2
|
|
with:
|
|
timeout_minutes: 5
|
|
max_attempts: 2
|
|
command: gradle clean build
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: AuthMeVelocity
|
|
path: build/libs/AuthMeVelocity.jar |