30 lines
644 B
YAML
30 lines
644 B
YAML
name: Java CI with Maven
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: "21"
|
|
distribution: "temurin"
|
|
cache: maven
|
|
- uses: stCarolas/setup-maven@v5
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml
|
|
- name: Release
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
files: ./target/fantasysmp*.jar
|
|
token: "${{secrets.RELEASE_TOKEN}}"
|