chore(deps): Update dependency net.fabricmc.fabric-api:fabric-api-catalog to v0.141.1+1.21.11 #1390
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 | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| tags-ignore: [ "**" ] | |
| pull_request: | |
| release: | |
| types: [ published ] | |
| jobs: | |
| build: | |
| # Only run on PRs if the source branch is on someone else's repo | |
| if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - uses: gradle/actions/setup-gradle@v5 | |
| # gradle-build-action doesn't support caching files in the project dir | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .gradle/loom-cache | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: ${{ runner.os }}-gradle- | |
| - name: Build | |
| run: ./gradlew build | |
| - name: Determine Status | |
| run: | | |
| if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then | |
| echo "STATUS=snapshot" >> $GITHUB_ENV | |
| else | |
| echo "STATUS=release" >> $GITHUB_ENV | |
| fi | |
| - name: Publish Snapshot | |
| if: "${{ env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}" | |
| run: ./gradlew publishAllPublicationsToSonatypeSnapshots | |
| env: | |
| ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}" | |
| ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}" | |
| - name: Publish Release | |
| if: "${{ env.STATUS == 'release' && github.event_name == 'release' }}" | |
| run: ./gradlew publishReleaseCentralPortalBundle | |
| env: | |
| ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}" | |
| ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}" | |
| ORG_GRADLE_PROJECT_signingKey: "${{ secrets.SIGNING_KEY }}" | |
| ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.SIGNING_PASSWORD }}" |