chore: Bump Fabric API #581
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: | |
| - '**' | |
| paths: | |
| - '**/*.java' | |
| - '**/*.gradle' | |
| - '**/*.kts' | |
| - '**/*.json' | |
| - '.github/workflows/*' | |
| tags: | |
| - '!**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - '**/*.java' | |
| - '**/*.gradle' | |
| - '**/*.kts' | |
| - '**/*.json' | |
| - '.github/workflows/*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| - name: Run Data Generation | |
| run: ./gradlew runDatagen | |
| env: | |
| CI: 'true' | |
| - name: Build artifacts | |
| run: ./gradlew build | |
| - name: Get build hash | |
| id: get-build-hash | |
| run: | | |
| echo "id=$(echo ${{github.sha}} | cut -c 1-7)" >> $GITHUB_OUTPUT | |
| - name: Get branch name | |
| id: get-branch | |
| shell: bash | |
| run: | | |
| echo "branch=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')" >> $GITHUB_OUTPUT | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4.3.3 | |
| with: | |
| name: moderner-beta-${{steps.get-branch.outputs.branch}}-${{steps.get-build-hash.outputs.id}} | |
| path: | | |
| build/libs/fabric | |
| build/libs/neoforge | |
| build/libs/forge |