This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Update monkeylib, depend on adventure api, replace monkeylib text wra… #164
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build artifacts | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: false | |
| - name: Store short commit hash | |
| run: echo "short_commit_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
| - name: Generate resources with Gradle | |
| run: ./gradlew runDatagenClient | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: true | |
| DISABLE_PROPERTIES_UPDATE: true | |
| VERSION_SUFFIX: ${{ env.short_commit_hash }} | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: true | |
| DISABLE_PROPERTIES_UPDATE: true | |
| VERSION_SUFFIX: ${{ env.short_commit_hash }} | |
| - name: Publish to Maven | |
| run: ./gradlew publishMavenPublicationToOffsetMonkey538Repository | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: true | |
| DISABLE_PROPERTIES_UPDATE: true | |
| VERSION_SUFFIX: ${{ env.short_commit_hash }} | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Artifacts | |
| path: ./loader/*/*/build/libs/ |