Open sneakypete81 opened 3 months ago
Related: the log at https://github.com/tauri-apps/tauri-action/blob/dev/src/create-release.ts#L65 says Looking for a draft release with tag ${tagName}...
but the next line actually queries all releases, not just draft releases.
I think the if (draft) {
logic here should differentiate between existing draft releases and published releases. If a published release is found with the same tag, the job should fail.
Steps to reproduce:
publish-to-autorelease.yml
example. This creates a draft release.Publish Release
.Expected:
The job should fail, since there is already a published release with the same tag.
Actual:
The published release's binaries are overwritten. However the release's tag isn't updated, so it is now pointing to the commit from first job run, not the one used to generate the new binaries. The source code archive is also from the original job commit, not the one used to generate the new binaries.