28 lines
658 B
YAML
28 lines
658 B
YAML
name: Build plugin
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: "21"
|
|
distribution: "temurin"
|
|
cache: maven
|
|
- name: Install Maven
|
|
uses: https://github.com/stCarolas/setup-maven@v4
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml
|
|
- run: mkdir staging && cp target/*.jar staging
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: compiled-jar
|
|
path: staging
|
|
retention-days: 90 |