36 lines
671 B
YAML
36 lines
671 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Java 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
|
|
- name: Make Gradle wrapper executable
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: Build
|
|
run: ./gradlew build --no-daemon
|
|
|
|
- name: Upload mod jar
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: worldhandler-1.21.1
|
|
path: build/libs/*.jar
|
|
if-no-files-found: error
|