Update LivingEntityMixin.java #10
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: Publish on GitHub, CurseForge & Modrinth | |
on: [ push, pull_request, workflow_dispatch ] | |
env: | |
MINECRAFT_VERSION: 1.20.1 | |
JAVA_VERSION: 17 | |
VERSION: 1.0.0+1.20.1 | |
RELEASE_NAME: Besmirchment fork 1.0.0 for Minecraft 1.20.1 | |
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Environment Variables | |
run: env | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "microsoft" | |
java-version: 17 | |
cache: gradle | |
- name: Make Gradle Wrapper Executable | |
if: ${{ runner.os != 'Windows' }} | |
run: chmod +x ./gradlew | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build | |
run: ./gradlew build | |
- name: Publish GitHub | |
uses: Kir-Antipov/[email protected] | |
with: | |
github-tag: "v${{env.VERSION}}" | |
github-token: "${{ secrets.MY_GITHUB_TOKEN }}" | |
name: "${{env.RELEASE_NAME}}" | |
version: "${{env.VERSION}}" | |
version-type: release | |
loaders: fabric | |
game-versions: "${{env.MINECRAFT_VERSION}}" | |
java: "${{env.JAVA_VERSION}}" |