workflows

This commit is contained in:
2026-06-07 11:03:12 +08:00
parent a27d77306b
commit 88a07ee5c1
2 changed files with 90 additions and 49 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Build Plugin
run-name: Building Plugin 🚀
on:
push:
tags:
- '*'
jobs:
build:
name: Build with Maven
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up JDK 25 and enable Maven cache
uses: actions/setup-java@v5
with:
distribution: 'liberica'
java-version: '25'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.16
- name: Build and package with Maven
run: mvn -B package
- name: Upload built artifacts
uses: actions/upload-artifact@v3
with:
name: maven-artifacts
path: target/spigot/*.jar