Skip to content

publish-modrinth

publish-modrinth #6

Workflow file for this run

name: publish-modrinth
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Gradle Build
run: /bin/sh ./gradlew build
- name: Modrinth Publish
run: /bin/sh ./gradlew modrinth -Pmodrinth_api_key=${{ secrets.MODRINTH_KEY }}