Skip to content
Allay AI

WikiAllay plugin

Releasing

Releases come from the “Release” workflow on GitHub, run by hand or by the weekly autopilot.

  1. Write the notes. Add a “## X.Y.Z” section to CHANGELOG.md and push. Patch for fixes, minor for features, major for breaking changes.
  2. Run the workflow:
    gh workflow run release.yml -R allay-ai/minecraft -f version=X.Y.Z
    Its changelog field overrides the section, and one of the two must be there.
  3. 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:

  1. Raise AllayApi.VERSION to the new version and add a “## X.Y.Z” section to expansion/CHANGELOG.md. Within a major the API only grows, and every new interface method comes with a default.
  2. Run it:
    gh workflow run expansion.yml -R allay-ai/minecraft -f version=X.Y.Z
  3. It builds, tests, and signs the library (the MAVEN_SIGNING_KEY and MAVEN_SIGNING_PASSWORD secrets), uploads it to the Central Portal to be published at once (tools/central.py, with the MAVEN_CENTRAL_USERNAME and MAVEN_CENTRAL_PASSWORD secrets), waits until the Portal says it's published and repo1.maven.org serves it, and tags expansion-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