diff --git a/.gitignore b/.gitignore index b9a881e..39348f1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,9 @@ vendor/ go.work go.work.sum +# Local ReleaseKit delivery credentials +.releasekit/ + # env file .env diff --git a/docs/release.md b/docs/release.md index fd231ae..9dd96d1 100644 --- a/docs/release.md +++ b/docs/release.md @@ -34,6 +34,12 @@ links, substituting the chosen tag in all three locations: Publish the intended `main` commit to `origin` before publishing its tag. The checked-in note supplies the complete hosted release body unchanged. +For local delivery, supply `RELEASEKIT_GITEA_TOKEN` or place the token in the +ignored `.releasekit/gitea-token` file with owner-only permissions. A nonblank +environment value takes precedence. The profile rejects that file if committed; +keep credentials out of commits and logs. Source publication does not require +delivery credentials. + ## Publish And Deliver From the module root, substitute the selected version: @@ -57,9 +63,13 @@ asynchronous and must be reported separately. The tag-triggered publication itself needs no delivery token. Keep the earlier `GITEA_RELEASE_TOKEN` secret for historical tagged workflows. -For delivery retries and partial or unknown outcomes, follow the upstream -[delivery guide][delivery] and retain original build artifacts where rebuilding -could change bytes. Runtime version behavior is described by the +For a delivery retry, use a clean checkout at the existing tag's commit and run +`sh ./releasekit deliver VERSION` with a delivery credential. Older tagged +profiles that lack `token_file`, including v0.16.0, require the environment +variable; the local token file is not selected automatically in those checkouts. +For partial or unknown outcomes, follow the upstream [delivery guide][delivery] +and retain original build artifacts where rebuilding could change bytes. Runtime +version behavior is described by the [runtime version guide][runtime]. [adoption]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/adoption.md diff --git a/releasekit.json b/releasekit.json index 4cb9704..bdf59a6 100644 --- a/releasekit.json +++ b/releasekit.json @@ -2,6 +2,7 @@ "product": "Scriptorium", "remote": "origin", "validation": { + "forbidden_files": [".releasekit/gitea-token"], "go": { "race": true } @@ -16,6 +17,7 @@ "base_url": "https://forge.maximumdirect.net", "owner": "eric", "repository": "scriptorium", - "token_env": "RELEASEKIT_GITEA_TOKEN" + "token_env": "RELEASEKIT_GITEA_TOKEN", + "token_file": ".releasekit/gitea-token" } }