-
Notifications
You must be signed in to change notification settings - Fork 0
Credentials
AzureDoom edited this page Aug 5, 2026
·
2 revisions
Create a key.properties file in your project root for local API keys.
Do not commit this file. HytalePublisher will automatically add key.properties to .gitignore when possible.
modTaleKey=your-modtale-api-key
curseKey=your-curseforge-api-token
modifoldKey=your-modifold-bearer-token
thunderstoreToken=your-thunderstore-service-account-token
githubToken=your-github-personal-access-token
mavenUsername=your-repo-username
mavenPassword=your-repo-password-or-tokenProject IDs should be configured in the Gradle DSL, not in key.properties.
You can get your API from the following links:
- Modtale: https://modtale.net/dashboard/developer
- CurseForge: https://legacy.curseforge.com/account/api-tokens
- Modifold: https://modifold.com/settings/api
- Thunderstore: https://thunderstore.io/settings/teams/ → [your team] → Service Accounts → Add service account
- GitHub: https://github.com/settings/tokens → generate a token (classic or fine-grained) with
repo/ "Contents: Read and write" access to the target repository. In GitHub Actions, the built-inGITHUB_TOKENworks instead — see CI/CD Example.
Credentials can also be provided through environment variables. This is recommended for CI/CD workflows.
| Platform |
key.properties key |
Environment variable |
|---|---|---|
| Modtale | modTaleKey |
MODTALE_KEY |
| CurseForge | curseKey |
CURSE_KEY |
| Modifold | modifoldKey |
MODIFOLD_KEY |
| Thunderstore | thunderstoreToken |
TCLI_AUTH_TOKEN |
| GitHub | githubToken |
GITHUB_TOKEN |
| Maven | mavenUsername |
MAVEN_USERNAME |
| Maven | mavenPassword |
MAVEN_PASSWORD |