Skip to content

fix using incorrect loot table id for fabric 1.21 datagen #137

fix using incorrect loot table id for fabric 1.21 datagen

fix using incorrect loot table id for fabric 1.21 datagen #137

name: Build artifacts
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false
- name: Store short commit hash
run: echo "short_commit_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: Generate resources with Gradle
run: ./gradlew runDatagenClient
env:
PRESERVE_PRERELEASE_VERSION: true
DISABLE_PROPERTIES_UPDATE: true
VERSION_SUFFIX: ${{ env.short_commit_hash }}
- name: Build with Gradle
run: ./gradlew build
env:
PRESERVE_PRERELEASE_VERSION: true
DISABLE_PROPERTIES_UPDATE: true
VERSION_SUFFIX: ${{ env.short_commit_hash }}
- name: Publish to Maven
run: ./gradlew publishMavenPublicationToOffsetMonkey538Repository
env:
PRESERVE_PRERELEASE_VERSION: true
DISABLE_PROPERTIES_UPDATE: true
VERSION_SUFFIX: ${{ env.short_commit_hash }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Delete common and modded artifacts, don't wanna confuse anybody with em
run: rm -rf common/build/libs modded/build/libs modded/*/build/libs
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: ./*/*/build/libs/