chore: Sign releases with an optional signing key

This commit is contained in:
MarcaDian committed 2026-10-26 11:40:53 +02:00
1 parent ba7e9e2204
commit 001cb8d73a
6 files changed
+17 -3

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ jobs:
id: release id: release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MORPHE_SIGNING_KEY: ${{ secrets.MORPHE_SIGNING_KEY }}
- name: Attest - name: Attest
if: steps.release.outputs.new_release_published == 'true' if: steps.release.outputs.new_release_published == 'true'
+4
View File
@@ -1,3 +1,7 @@
### Morphe
# Private key that signs the patches file
morphe-signing.key
### Java template ### Java template
# Compiled class file # Compiled class file
*.class *.class
+2 -1
View File
@@ -37,7 +37,8 @@
"releaseJson": { "releaseJson": {
"path": "patches-bundle.json", "path": "patches-bundle.json",
"downloadUrlTemplate": "https://github.com/${owner}/${repo}/releases/download/v${version}/patches-${version}.mpp", "downloadUrlTemplate": "https://github.com/${owner}/${repo}/releases/download/v${version}/patches-${version}.mpp",
"signatureUrlTemplate": "" "signatureUrlTemplate": "",
"publicKeyPath": "morphe-signing.pub"
} }
} }
], ],
+8
View File
@@ -42,6 +42,14 @@ To start using this template, follow these steps:
patches after yourself ("UserXYZ Morphe patches"). See the [NOTICE](NOTICE) for details. patches after yourself ("UserXYZ Morphe patches"). See the [NOTICE](NOTICE) for details.
7. (Optional): Add `patches-bundle.png` to the project if you want a custom icon to show in 7. (Optional): Add `patches-bundle.png` to the project if you want a custom icon to show in
Morphe Manager instead of your GitHub profile avatar. Morphe Manager instead of your GitHub profile avatar.
8. (Optional): Sign your releases, so Morphe Manager refuses a release that was changed or swapped after you published it:
1. Run `./gradlew generateSigningKey`. It creates `morphe-signing.pub` and `morphe-signing.key`.
2. Commit `morphe-signing.pub`. Never commit `morphe-signing.key`, it is already ignored by git.
3. Add the content of `morphe-signing.key` as the `MORPHE_SIGNING_KEY` secret in your repo
Settings > Secrets and variables > Actions, then keep a backup of it somewhere safe and delete the file.
Every release is signed from then on. If you lose the key or it leaks, create a new one the same way;
users then have to confirm the new key in Morphe Manager before they get your next release.
🎉 You are now ready to start creating patches! 🎉 You are now ready to start creating patches!
+1 -1
View File
@@ -121,7 +121,7 @@
}, },
"node_modules/@MorpheApp/changelog": { "node_modules/@MorpheApp/changelog": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#caa1e931730f097bb6c4dee636b01c2c24ccd72d", "resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#11c6c7257d02be913db9b3e62e559598714caaf6",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
+1 -1
View File
@@ -17,5 +17,5 @@ pluginManagement {
} }
plugins { plugins {
id("app.morphe.patches") version "2.0.0" id("app.morphe.patches") version "2.1.0-dev.1"
} }