9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-29 11:49:19 +00:00
Files
DivineMC/.github/workflows/build-pr.yml
2025-04-27 14:06:50 +03:00

37 lines
945 B
YAML

name: Build Pull Request
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK 21
uses: useblacksmith/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Configure Git and Gradle
run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
chmod +x gradlew
- name: Apply Patches
run: ./gradlew applyAllPatches --stacktrace --no-daemon
- name: Build Paperclip Jar
run: ./gradlew createMojmapPaperclipJar --stacktrace --no-daemon
- name: Upload Artifacts
uses: actions/upload-artifact@main
with:
name: DivineMC
path: divinemc-server/build/libs/divinemc-paperclip-*-mojmap.jar