Update to Minecraft 1.21.3 #762
This file contains 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: Patch and Build | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up JDK | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/folia' }} | |
- name: Configure Git User Details | |
run: git config --global user.email "actions@github.com" && git config --global user.name "Github Actions" | |
- run: chmod +x ./gradlew | |
- name: Apply Patches | |
run: ./gradlew applyPatches --stacktrace | |
- name: Build | |
run: ./gradlew createMojmapPaperclipJar --stacktrace | |
- name: Upload | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
continue-on-error: true | |
with: | |
name: Okocraft-Build-${{ github.run_number }} | |
path: ./build/libs/okocraft-paperclip-*.jar |