build(plugin): establish build and release pipeline
CI / build (push) Successful in 3m2s
Release / release (push) Successful in 3m47s

This commit is contained in:
dmg
2026-08-14 23:52:20 -04:00
parent 4aa0b438fb
commit f28e47782e
15 changed files with 688 additions and 11 deletions
+40
View File
@@ -0,0 +1,40 @@
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Validate conventional commits
if: github.event_name == 'pull_request'
run: |
npx -y \
-p @commitlint/cli \
-p @commitlint/config-conventional \
commitlint --from "${{ github.event.pull_request.base.sha }}" --to "${{ github.sha }}" \
--extends @commitlint/config-conventional
- name: Build and test
run: ./gradlew clean check jar
- name: Upload development artifact
uses: actions/upload-artifact@v3
with:
name: spigot-stealth-${{ github.sha }}
path: build/libs/*.jar
if-no-files-found: error