Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-11-30 23:09:34 +00:00
chore: Sign releases with an optional signing key
This commit is contained in:
1 parent
ba7e9e2204
commit
001cb8d73a
6 files changed
+17
-3
No files matched your search
@@ -41,6 +41,7 @@ jobs:
|
||||
id: release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MORPHE_SIGNING_KEY: ${{ secrets.MORPHE_SIGNING_KEY }}
|
||||
|
||||
- name: Attest
|
||||
if: steps.release.outputs.new_release_published == 'true'
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
### Morphe
|
||||
# Private key that signs the patches file
|
||||
morphe-signing.key
|
||||
|
||||
### Java template
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
+2
-1
@@ -37,7 +37,8 @@
|
||||
"releaseJson": {
|
||||
"path": "patches-bundle.json",
|
||||
"downloadUrlTemplate": "https://github.com/${owner}/${repo}/releases/download/v${version}/patches-${version}.mpp",
|
||||
"signatureUrlTemplate": ""
|
||||
"signatureUrlTemplate": "",
|
||||
"publicKeyPath": "morphe-signing.pub"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -42,6 +42,14 @@ To start using this template, follow these steps:
|
||||
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
|
||||
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!
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -121,7 +121,7 @@
|
||||
},
|
||||
"node_modules/@MorpheApp/changelog": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#caa1e931730f097bb6c4dee636b01c2c24ccd72d",
|
||||
"resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#11c6c7257d02be913db9b3e62e559598714caaf6",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -17,5 +17,5 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("app.morphe.patches") version "2.0.0"
|
||||
id("app.morphe.patches") version "2.1.0-dev.1"
|
||||
}
|
||||
Reference in new issue
Block a user