- Create an env in your GitHub settings. Call it
gradle
. - Add a variable to the env named
RELEASE_TYPE
, and give it a value ofalpha
,beta
, orrelease
. - Add a secret to the env named
MODRINTH_TOKEN
, and give it the value of your Modrinth Token. - Paste
publishing.yml
in.github/workflows/publishing.yml
- Add the following to your
build.gradle.kts
:
plugins {
`maven-publish`