Releasing
Releases come from the “Release” workflow on GitHub, run by hand or by the weekly autopilot.
- Write the notes. Add a “## X.Y.Z” section to
CHANGELOG.mdand push. Patch for fixes, minor for features, major for breaking changes. - Run the workflow:
Itsgh workflow run release.yml -R allay-ai/minecraft -f version=X.Y.Zchangelogfield overrides the section, and one of the two must be there. - Watch it with
gh run watch.
The workflow builds with -PreleaseVersion, runs the tests, tags vX.Y.Z, and attaches each jar to a GitHub release twice, with its version and without: allay-spigot-X.Y.Z.jar, allay-fabric-X.Y.Z.jar, and allay-neoforge-X.Y.Z.jar, so releases/latest/download/allay-spigot.jar, allay-fabric.jar, and allay-neoforge.jar always fetch the newest ones. On Modrinth the plugin goes up as X.Y.Z+spigot and the mods as X.Y.Z+fabric and X.Y.Z+neoforge (tools/modrinth.py, which gives each its environment). Its deploy job then ships the release to Moonlands.
Never delete or re-tag a published release.
#The expansion API
chat.allay:allay-expansion has its own version and goes to Maven Central from its own workflow:
- Raise
AllayApi.VERSIONto the new version and add a “## X.Y.Z” section toexpansion/CHANGELOG.md. Within a major the API only grows, and every new interface method comes with a default. - Run it:
gh workflow run expansion.yml -R allay-ai/minecraft -f version=X.Y.Z - It builds, tests, and signs the library (the
MAVEN_SIGNING_KEYandMAVEN_SIGNING_PASSWORDsecrets), uploads it to the Central Portal to be published at once (tools/central.py, with theMAVEN_CENTRAL_USERNAMEandMAVEN_CENTRAL_PASSWORDsecrets), waits until the Portal says it's published and repo1.maven.org serves it, and tagsexpansion-vX.Y.Z.
A version goes to Maven Central once and stays: check everything before you run it. The key that signs it is “Allay AI (Maven Central signing)”, fingerprint ED7DA123BAE8F8D49C0C52EE2065C249DCF7E3FD, on keys.openpgp.org.
#Modrinth and Hangar
Both stores call the project “Allay AI”: allay-ai on Modrinth since 6.18.1, and MairwunNx/AllayAI on Hangar, Paper only, since 6.18.1. -f modrinth=true -f hangar=true publishes there after the GitHub release, and each upload syncs MODRINTH.md as the project's description. The tokens are the MODRINTH_TOKEN and HANGAR_TOKEN secrets, which MairwunNx/infrastructure sets from its secrets.toml. A store that failed in the workflow takes the same version by hand: check out the tag, then run python3 -I tools/modrinth.py --version X.Y.Z --notes <notes> --jars <folder with the release's jars> or ./gradlew publishPluginPublicationToHangar -PreleaseVersion=X.Y.Z -PchangelogFile=<notes>, with the token in the environment.
Next: Development
