Updated gradle to 9.3.1 #1254
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", "pull_request", "workflow_dispatch"] | |
| permissions: | |
| contents: "read" | |
| jobs: | |
| build: | |
| runs-on: "ubuntu-24.04" | |
| if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" | |
| steps: | |
| - name: "Checkout repository" | |
| uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8" # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: "Set up Gradle" | |
| uses: "gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2" # v5.0.0 | |
| - name: "Set up Java 21" | |
| uses: "actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e" # v5.1.0 | |
| with: | |
| distribution: "temurin" | |
| java-version: 21 | |
| check-latest: true | |
| - name: "Build with Gradle" | |
| run: "./gradlew build" | |
| - name: "Upload Fabric artifacts to GitHub" | |
| uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" # v5.0.0 | |
| with: | |
| name: "ImmediatelyFast Fabric" | |
| path: "fabric/build/libs/" | |
| - name: "Upload NeoForge artifacts to GitHub" | |
| uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" # v5.0.0 | |
| with: | |
| name: "ImmediatelyFast NeoForge" | |
| path: "neoforge/build/libs/" | |
| - name: "Upload Forge artifacts to GitHub" | |
| uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" # v5.0.0 | |
| with: | |
| name: "ImmediatelyFast Forge" | |
| path: "forge/build/libs/" |