Skip to content

v3.0.0-beta.5 1.21.3 #27

v3.0.0-beta.5 1.21.3

v3.0.0-beta.5 1.21.3 #27

Workflow file for this run

name: mc-publish
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: rm -f fabric/build/libs/* neoforge/build/libs/* && ./gradlew jar && ./gradlew remapJar
- name: Publish Fabric
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 986380
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: fabric/build/libs/lighty-fabric-*([0-9]?(.))?(-@(alpha|beta).*[0-9])\+*([0-9wa]?(.))?(-pre*[0-9]).jar
fail-mode: warn
- name: Publish Neoforge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: yjvKidNM
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 986380
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: neoforge/build/libs/lighty-neoforge-*([0-9]?(.))?(-@(alpha|beta).*[0-9])\+*([0-9wa]?(.))?(-pre*[0-9]).jar
fail-mode: warn