Skip to content

1.1.0-fabric

1.1.0-fabric #3

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Publish to CurseForge and Modrinth
on:
release:
types: [published]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew build
- name: Publish Fabric to CurseForge and Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: mfONdVnp
modrinth-featured: true
modrinth-unfeature-mode: intersection
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 623925
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
files: |
build/libs/!(*-@(dev|dev-shadow|sources|javadoc)).jar
build/libs/*-@(dev|dev-shadow|sources|javadoc).jar
name: ""
version-type: release
loaders: |
fabric
quilt
modrinth-game-versions: |
>=1.14
curseforge-game-versions: |
>=1.14
java: |
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
retry-attempts: 2
retry-delay: 10000
fail-mode: fail