feat: release pipeline and env-supplied server key (#82)

* build: move group and version to gradle.properties

* ci: add release-please versioning and release pipeline

* feat(server): load the root key from the environment

* ci: publish key-free server archives on release
This commit is contained in:
Fiereu authored and GitHub committed 2026-08-03 11:38:03 +02:00
1 parent 8bd065fcb4
commit dfeabdc581
20 files changed
+291 -33

No files matched your search

+26
View File
@@ -6,6 +6,7 @@
- [Description](#description)
- [Building](#building)
- [Configuration](#configuration)
- [Releases](#releases)
- [Documentation](#wiki)
- [License](LICENSE)
- [Disclaimer](#disclaimer)
@@ -49,6 +50,31 @@ For local-only tweaks to the container setup, create a
Docker Compose merges it automatically on `docker compose up`.
For deployment,supply a proper `.env` and run `docker compose -f docker-compose.yml up -d` to skip any override.
### Server key
Both servers share one private key. A local build generates it, so development
needs no setup.
Released archives ship no keys. Generate a pair with
`./gradlew :keys:generateGame` and pass the private key to both servers through
`OPENMMO_GAME_PRIVATE_KEY` (the PEM) or `OPENMMO_GAME_PRIVATE_KEY_FILE` (a path
to it). Clients need a patched build carrying the matching public key.
## Releases
[release-please](https://github.com/googleapis/release-please) cuts releases from
the commit history. Pull requests are squash merged, so their titles become the
commit messages it reads and must follow
[Conventional Commits](https://www.conventionalcommits.org/). CI rejects titles
that do not.
`feat` bumps the minor version, `fix` the patch version. Below `1.0.0` a
breaking change bumps the minor version instead of jumping to `1.0.0`.
Every push to `master` opens or updates a release pull request. Merging it tags
the release and attaches the server archives. The version lives in
`gradle.properties` and applies to every module, do not edit it by hand.
## Wiki
The documentation wiki can be found [here](https://openmmo.readthedocs.io/en/latest/).