1.21.1-1.3.3 #6
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
# This workflow will build a Java project with Brachyra | |
# For more information see: docs/development/brachyura.md | |
name: Release script | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: false | |
- name: Run build with Gradle Wrapper | |
run: ./gradlew build -Dbuild.release=true | |
- name: Extract versions from tag name | |
id: versions | |
run: | | |
readarray -td "-" VERSIONS <<< "${GITHUB_REF#refs/tags/}-" | |
echo "minecraft-version=${VERSIONS[0]}" >> "${GITHUB_OUTPUT}" | |
echo "mod-version=${VERSIONS[1]}" >> "${GITHUB_OUTPUT}" | |
- name: Upload fabric artifacts | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-id: ht0eTMEs | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
modrinth-featured: true | |
name: '[${{ steps.versions.outputs.minecraft-version }}] Fabric ${{ steps.versions.outputs.mod-version }}' | |
version: 'fabric-${{ steps.versions.outputs.minecraft-version }}-${{ steps.versions.outputs.mod-version }}' | |
curseforge-id: 640001 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
fabric/build/libs/!(*-@(sources|dev|dev-shadow|javadoc).jar) | |
version-type: release | |
loaders: fabric quilt | |
dependencies: | | |
fabric-api(required) | |
architectury-api(required) | |
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890} | |
chisel-reborn(required) | |
game-version-filter: releases # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json | |
- name: Upload neoforge artifacts | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-id: ht0eTMEs | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
modrinth-featured: true | |
curseforge-id: 640001 | |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
name: '[${{ steps.versions.outputs.minecraft-version }}] NeoForge ${{ steps.versions.outputs.mod-version }}' | |
version: 'neoforge-${{ steps.versions.outputs.minecraft-version }}-${{ steps.versions.outputs.mod-version }}' | |
files: | | |
neoforge/build/libs/!(*-@(sources|dev|dev-shadow|javadoc).jar) | |
version-type: release | |
loaders: neoforge | |
dependencies: | | |
architectury-api(required) | |
athena-ctm(required){modrinth:b1ZV3DIJ}{curseforge:841890} | |
chisel-reborn(required) | |
game-version-filter: releases # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json |