2024-05-06 10:50:30 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: node-16
|
|
|
|
steps:
|
|
|
|
- uses: https://github.com/actions/checkout@v4
|
2024-05-06 15:29:01 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-06 10:50:30 +00:00
|
|
|
uses: https://github.com/actions/setup-java@v4
|
|
|
|
with:
|
2024-05-06 15:29:01 +00:00
|
|
|
java-version: '21'
|
2024-05-06 10:50:30 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
cache: maven
|
|
|
|
- name: Set up Maven
|
|
|
|
uses: https://github.com/stCarolas/setup-maven@v5
|
|
|
|
with:
|
|
|
|
maven-version: 3.8.7
|
|
|
|
- name: Build with Maven
|
|
|
|
run: mvn package
|
|
|
|
- uses: https://github.com/actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
path: target/lobby-1.0-SNAPSHOT-jar-with-dependencies.jar
|