9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2026-01-06 15:41:52 +00:00

[ci-skip] update .github dir

This commit is contained in:
NONPLAYT
2025-04-27 14:06:50 +03:00
parent 4cde401243
commit 2c364c71c9
10 changed files with 273 additions and 85 deletions

36
.github/workflows/build-pr.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
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