Skip to content

fix: correct command registration syntax in ClientCommandIdentityCopy #19

fix: correct command registration syntax in ClientCommandIdentityCopy

fix: correct command registration syntax in ClientCommandIdentityCopy #19

Workflow file for this run

name: Build Mod for 1.16.5
on:
push:
branches: [ '1.16.5-development' ]
workflow_dispatch:
permissions:
contents: write
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
- name: Set up JDK 25 for Gradle
uses: actions/setup-java@v5.6.0
with:
distribution: 'temurin'
java-version: '8'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
# Cache Gradle dependencies to speed up builds
- name: Cache Gradle packages
uses: actions/cache@v6.1.0
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Get Short Commit SHA
id: vars
uses: actions/github-script@v9.0.0
with:
script: |
const sha = context.sha.substring(0, 7);
core.setOutput('short_sha', sha);
# Build the mod
- name: Build with Gradle
run: ./gradlew build --no-daemon
- name: Upload Development Artifact
uses: actions/upload-artifact@v7.0.1
with:
name: SimpleDifficulty-dev-${{ steps.vars.outputs.short_sha }}
path: |
build/libs/*.jar
if-no-files-found: error
- name: Upload Build Logs on Failure
if: failure()
uses: actions/upload-artifact@v7.0.1
with:
name: gradle-failure-logs
path: |
**/build/reports/
**/build/test-results/
if-no-files-found: ignore