Skip to content

Remove more @Environment(EnvType.CLIENT) annotations in common mixins #13

Remove more @Environment(EnvType.CLIENT) annotations in common mixins

Remove more @Environment(EnvType.CLIENT) annotations in common mixins #13

Workflow file for this run

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/mc-publish@v3.3
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}}"