Skip to content

2.0.6: 1.21.2 Support #17

2.0.6: 1.21.2 Support

2.0.6: 1.21.2 Support #17

Workflow file for this run

name: Publish
on:
release:
types:
- released
workflow_dispatch:
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: "actions/checkout@v4.1.7"
- name: Set up JDK
uses: "actions/setup-java@v4.2.2"
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Cache Gradle files
uses: "actions/cache@v4.0.2"
with:
path: |
~/.gradle/caches
~/.gradle/wrapper/
key: ${{ runner.os }}-gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: "wrapper"
- name: Build JARs
uses: Wandalen/wretry.action@master
with:
command: "gradle chiseledBuild"
attempt_limit: 3
- name: Upload built JARs
uses: "actions/upload-artifact@v4.3.6"
with:
name: EventUtils
path: |
./versions/**/build/libs/*.jar
distribute:
needs: build
runs-on: "ubuntu-latest"
permissions:
contents: write
strategy:
matrix:
game_version: [ # Update this when adding new game versions!
"1.21.1",
"1.21",
"1.20.6",
"1.20.5",
"1.20.4",
"1.20.3",
"1.20.2",
"1.20.1"
]
steps:
- name: Checkout repository
uses: "actions/checkout@v4.1.7"
- name: Download Built JARs
uses: actions/download-artifact@v4
with:
name: EventUtils
path: ./versions
- name: Publish
uses: "Kir-Antipov/mc-publish@v3.3.0"
with:
fail-mode: warn
modrinth-id: ZcRRACSs
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: versions/${{ matrix.game_version }}/build/libs/*.jar
version: ${{ matrix.game_version }}-${{ github.ref_name }}
game-versions: ${{ matrix.game_version }}
loaders: |
fabric
quilt
dependencies: |
fabric-api
yacl