Create build.yml

This commit is contained in:
unimatrixgit 2026-10-12 23:33:05 +02:00 • committed by GitHub
commit 57e04ea667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

35
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Build DuneRealms
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Install Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- name: Compile plugin
run: gradle clean build
- name: Upload plugin JAR
uses: actions/upload-artifact@v4
with:
name: DuneRealms-Plugin
path: build/libs/*.jar
if-no-files-found: error