Skip to content

Commit

Permalink
Beta Version 0.0.4
Browse files Browse the repository at this point in the history
Added Modrinth auto deploy
  • Loading branch information
AndrewDragonCh committed May 4, 2024
1 parent 41811d9 commit c5816e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ jobs:
run: ./gradlew build publishPluginPublicationToHangar --stacktrace
env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
- name: Publish to Modrinth and GitHub
uses: Kir-Antipov/[email protected]
with:
modrinth-id: DisablePortals
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

version: 0.0.4
version-type: beta

loaders: paper
game-versions: |
>=1.20
java: 17
- name: Publish to Modrinth
run: ./gradlew build modrinth --stacktrace
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
14 changes: 12 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ plugins {
`java-library`
`maven-publish`
id("io.papermc.hangar-publish-plugin") version "0.1.2"
id("com.modrinth.minotaur") version "2.+"
}

modrinth {
token.set(System.getenv("MODRINTH_TOKEN")) // Remember to have the MODRINTH_TOKEN environment variable set or else this will fail - just make sure it stays private!
projectId.set("DisablePortals-0.0.4") // This can be the project ID or the slug. Either will work!
versionType.set("Beta") // This is the default -- can also be `beta` or `alpha`
uploadFile.set(tasks.jar) // With Loom, this MUST be set to `remapJar` instead of `jar`!
loaders.add("paper")
gameVersions.addAll("1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6")
}

hangarPublish {
Expand Down Expand Up @@ -45,8 +55,8 @@ dependencies {
compileOnly(libs.io.papermc.paper.paper.api)
}

group = "dev.andrewdragon.plugins"
version = "0.0.1"
group = "dev.andrewdragon"
version = "0.0.4"
description = "DisablePortals"
java.sourceCompatibility = JavaVersion.VERSION_17

Expand Down

0 comments on commit c5816e2

Please sign in to comment.