diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3301a48bdc9..27d9d816b60 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -40,6 +40,17 @@ checksum: release: prerelease: auto draft: true + # Reuse an existing draft release for this tag instead of creating a new one. + # `keep-existing` leaves the release (and its description) as is if one already + # exists, so a manually-written description is preserved. + mode: keep-existing + replace_existing_draft: false + # GitHub's "get release by tag" API doesn't return drafts, so this is required + # for goreleaser to actually find and attach assets to the existing draft. + use_existing_draft: true + # Allow re-runs on the same tag to overwrite already-uploaded assets instead of + # failing with a 422 conflict. + replace_existing_artifacts: true github: owner: jetify-com name: devbox