mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-19 14:59:25 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@fc89fde5 Updated Upstream (Paper)
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Publish API
|
|
|
|
on:
|
|
push:
|
|
branches: [ "ver/1.21.10" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup JDK 21
|
|
uses: actions/setup-java@v5
|
|
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 }}
|