Skip to content

26.2 support

26.2 support #319

Workflow file for this run

name: Modrinth Publish
on:
push:
branches:
- master
# Allow manual triggering from the GitHub UI
workflow_dispatch:
# Trigger when a new release is created
release:
types: [created]
jobs:
publish:
if: github.repository_owner == 'SamB440'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Publish to Modrinth
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- name: Capture build artifacts
uses: actions/upload-artifact@v7
with:
name: Artifacts
path: |
**/build/libs/
*/build/libs/