mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-27 18:59:08 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@a39c4cb0 Updated Upstream (Paper) PurpurMC/Purpur@ea7b18ab Updated Upstream (Paper) PurpurMC/Purpur@0f82c210 Updated Upstream (Paper) PurpurMC/Purpur@8de15d66 this is important for the build to not fail.. PurpurMC/Purpur@5053eb0c use a different method for dropping lapis, closes #1692
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Publish API
|
|
|
|
on:
|
|
push:
|
|
branches: [ "ver/1.21.8" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 21
|
|
cache: gradle
|
|
|
|
- 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: |
|
|
PARALLELISM=$(($(nproc) * 2))
|
|
./gradlew applyAllPatches --stacktrace --parallel --max-workers=$PARALLELISM --build-cache --no-daemon
|
|
|
|
- name: Build
|
|
run: ./gradlew build -x test
|
|
|
|
- name: Publish API
|
|
continue-on-error: true
|
|
run: |
|
|
./gradlew :divinemc-api:publish
|
|
./gradlew publishDevBundlePublicationToDivinemcRepository -PpublishDevBundle=true
|
|
env:
|
|
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
|
|
REPO_PASSWORD: ${{ secrets.REPO_SECRET }}
|