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 }}