v3.0.0-beta.7 1.21.1 #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |