Support Java 17 and 21 in CI and docs
Build Plugin / build-and-release (17) (push) Successful in 3m0s
Build Plugin / build-and-release (21) (push) Successful in 3m7s

This commit is contained in:
asminme committed 2026-11-23 04:42:56 +01:00
1 parent fc8f276a16
commit d924e727d1
3 files changed
+11 -5

No files matched your search

+8 -3
View File
@@ -15,17 +15,20 @@ concurrency:
jobs:
build-and-release:
runs-on: docker-builder
strategy:
matrix:
java: ['17', '21']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java 17
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
java-version: ${{ matrix.java }}
- name: Install Maven 3.9.9
run: |
@@ -56,6 +59,7 @@ jobs:
run: mvn --batch-mode clean verify -Drevision=${{ steps.version.outputs.version }}
- name: Prepare release notes
if: ${{ matrix.java == '17' }}
shell: bash
env:
VERSION: ${{ steps.version.outputs.version }}
@@ -77,10 +81,11 @@ jobs:
printf '%s\n' "$changes"
echo
echo "Kompatybilność: Minecraft 1.20.4, Paper/Purpur."
echo "Wymagana Java 17."
echo "Java 17 lub 21 (plugin działa na obu wersjach)."
} > release-body.md
- name: Create Gitea release and upload plugin
if: ${{ matrix.java == '17' }}
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_SERVER_URL: ${{ gitea.server_url }}