This repository was archived by the owner on Feb 14, 2026. It is now read-only.
[No CI] Merge pull request #1 from OffsetMods538/dependabot/github_ac… #2
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 | |
| - 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 | |
| VERSION_SUFFIX: ${{ env.short_commit_hash }} | |
| - name: Publish to Maven | |
| run: ./gradlew publishMavenPublicationToOffsetMods538Repository | |
| env: | |
| PRESERVE_PRERELEASE_VERSION: 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: ./build/libs/ |