Closed AdamRaichu closed 2 months ago
Hi! This isn't actually an issue with mc-publish
! Here are all your failed runs (from oldest to newest):
fabric.mod.json
explicitly sets the Minecraft version as 1.20.5-rc.2
, while you implicitly ask mc-publish
to filter out non-release versions with the default value of game-version-filter
:
game-version-filter: releases
1.20.5-rc.2
from gradle.properties
to mc-publish
, while still asking it to filter out non-release versions with the default value of game-version-filter
:
game-version-filter: releases
1.20.5-rc.2
to 1.20.5
, however, 1.20.5
had yet to be released 2 days ago when you ran the workflow, so your game-versions
predicate only matched pre-release versions that you, once again, asked mc-publish
to filter out with the default value of game-version-filter
:
game-version-filter: releases
1.20.5
to 1.20.5-snapshot
, which is not a valid Minecraft version. The failure here is expected.I see that you've since changed Minecraft's version in fabric.mod.json
to >1.20.4
, and considering that Mojang has just released 1.20.5
, please revert everything you did to your otherwise perfectly fine workflow file, and it will work just fine! :)
Thanks, I see now the answer was staring me in the face. Thank you for the detailed explanation.
You are always welcome! If you do decide to showcase pre-release versions of Minecraft on your project's page on CurseForge/Modrinth, you can simply change the default filter value to:
game-version-filter: any
Also, just keep in mind in the future that you cannot publish a mod that supports an unreleased version of Minecraft, because it has yet to be listed on Modrinth/CF :D
Description
I'm trying to use mcpublish to upload builds of my mods to CF and MR. I was able to use this successfully several times about 2 months ago. However, when I tried to use this recently (started about 2 days ago), the workflow failed with the following error.
I tried to fix this by adding (it wasn't needed before) the
game-versions
input, and several variations on it, but still get the same error.You can see my workflow runs here, which have all of the workflow files and value logged.
Expected Behavior
The workflow should upload files to CF.
Actual Behavior
The workflow shows the following in the logs.
Version
uses: Kir-Antipov/mc-publish@v3.3
Environment
GitHub Actions
Configuration
Logs
Other Information
No response