Feat: Add changelog to modrinth releases (#4770)

* Feat: Add changelog to modrinth releases

* oops
This commit is contained in:
chris 2024-06-19 22:27:14 +02:00 committed by GitHub
parent 2c47330509
commit 34158f9463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -106,6 +106,7 @@ jobs:
- name: Publish to Modrinth - name: Publish to Modrinth
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }}
env: env:
CHANGELOG: ${{ steps.metadata.outputs.body }}
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }} BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew modrinth run: ./gradlew modrinth

View file

@ -10,7 +10,7 @@ modrinth {
projectId.set("geyser") projectId.set("geyser")
versionNumber.set(project.version as String + "-" + System.getenv("BUILD_NUMBER")) versionNumber.set(project.version as String + "-" + System.getenv("BUILD_NUMBER"))
versionType.set("beta") versionType.set("beta")
changelog.set("A changelog can be found at https://github.com/GeyserMC/Geyser/commits") changelog.set(System.getenv("CHANGELOG") ?: "")
gameVersions.add(libs.minecraft.get().version as String) gameVersions.add(libs.minecraft.get().version as String)
failSilently.set(true) failSilently.set(true)