This repository was archived by the owner on Feb 15, 2026. It is now read-only.
update buildSrc, more fixes to modrinth publishing #140
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@v6 | |
| 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: Build with Gradle | |
| run: ./gradlew build | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: true | |
| DISABLE_PROPERTIES_UPDATE: true | |
| DISABLE_MUSIC: true | |
| VERSION_SUFFIX: ${{ env.short_commit_hash }} | |
| - name: Publish to Maven | |
| run: ./gradlew publishMavenPublicationToOffsetMonkey538Repository | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: true | |
| DISABLE_PROPERTIES_UPDATE: true | |
| DISABLE_MUSIC: 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@v6 | |
| with: | |
| name: Build Artifacts | |
| path: ./loader/*/*/build/libs/ |