mirror of
https://github.com/softprops/action-gh-release.git
synced 2026-03-22 11:19:56 +08:00
fix: clarify immutable prerelease uploads (#763)
* fix: draft prereleases before uploading assets Signed-off-by: Rui Chen <rui@chenrui.dev> * fix: clarify immutable prerelease uploads Signed-off-by: Rui Chen <rui@chenrui.dev> --------- Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -240,6 +240,12 @@ will retain its original info.
|
||||
existing draft release, set `draft: true` to keep it draft; if `draft` is omitted,
|
||||
the action will publish that draft after uploading assets.
|
||||
|
||||
💡 GitHub immutable releases lock assets after publication. Standard releases in this
|
||||
action already upload assets before publishing, but prereleases stay published by
|
||||
default so `release.prereleased` workflows keep firing. On an immutable-release
|
||||
repository, use `draft: true` for prereleases that upload assets, then publish that
|
||||
draft later and subscribe downstream workflows to `release.published`.
|
||||
|
||||
💡 `files` is glob-based, so literal filenames that contain glob metacharacters such as
|
||||
`[` or `]` must be escaped in the pattern.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user