Skip to content

CHANGELOG.md not automatically picked up for publishCurseforge/modrinth tasks #63

@MellowArpeggiation

Description

@MellowArpeggiation

When attempting to publish automatically using the relevant Gradle tasks, an error is thrown in PublishingModule:

Caused by: java.nio.file.NoSuchFileException: CHANGELOG.md
        at org.gradle.internal.classpath.declarations.NioFileInterceptors.intercept_readAllBytes(NioFileInterceptors.java:190)
        at com.gtnewhorizons.gtnhgradle.modules.PublishingModule.apply(PublishingModule.java:116)
        at com.gtnewhorizons.gtnhgradle.GTNHModule.applyIfEnabled(GTNHModule.java:59)
        ... 188 more

I managed to rectify this by changing the CHANGELOG_FILE env var to be an absolute path, via:

export CHANGELOG_FILE=C:\\Users\\georg\\Documents\\Developer\\NBTStructureLib\\CHANGELOG.md

Fixing the relative & default path handling would be desirable. Also, adding an example CHANGELOG.md file to ExampleMod1.7.10 would go a long way to helping those setting up CI for the first time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions