2024-04-27 18:38:36 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: node-16
|
|
|
|
steps:
|
|
|
|
- uses: https://github.com/actions/checkout@v4
|
2024-06-13 22:12:40 +00:00
|
|
|
- name: Set up JDK 21
|
2024-04-27 18:46:38 +00:00
|
|
|
uses: https://github.com/actions/setup-java@v4
|
|
|
|
with:
|
2024-06-13 22:12:40 +00:00
|
|
|
java-version: '21'
|
2024-04-27 18:46:38 +00:00
|
|
|
distribution: 'temurin'
|
2024-04-27 18:38:36 +00:00
|
|
|
cache: maven
|
2024-04-27 18:48:51 +00:00
|
|
|
- name: Set up Maven
|
|
|
|
uses: https://github.com/stCarolas/setup-maven@v5
|
|
|
|
with:
|
|
|
|
maven-version: 3.8.7
|
2024-04-27 18:38:36 +00:00
|
|
|
- name: Build with Maven
|
2024-04-27 18:44:50 +00:00
|
|
|
run: mvn package
|
2024-04-27 18:50:24 +00:00
|
|
|
- uses: https://github.com/actions/upload-artifact@v3
|
2024-04-27 18:38:36 +00:00
|
|
|
with:
|
|
|
|
path: target/animalrp-1.0.0-animalrp.jar
|