tauri-action icon indicating copy to clipboard operation
tauri-action copied to clipboard

Creates `release` even if failed pipeline

Open lukeed opened this issue 4 years ago • 3 comments

If/When one of the platform matrix targets fail, all others continue to upload their asset(s) to the release.

Expected the failed pipeline to not create a release until all matrix targets were successful.

lukeed avatar Jun 21 '21 23:06 lukeed

We'll double check this but I don't think this is possible. Since each matrix job is ran separately, it's a little tricky to do it, probably needs another job that runs on finish. You can mark the release as a draft release though.

lucasfernog avatar Jun 21 '21 23:06 lucasfernog

It's possible – I only have partially-failed Release pipelines (darn Windows), yet I have a GH release for each attempt.


Edit: Sorry, I misunderstood you. I thought you were saying that it was impossible for this problem to exist 🙈

I think this can be done via job.needs. It might take a bit of plumbing, but each matrix pipeline could have a final step (eg, upload) that needs all others' build-step to succeed.

lukeed avatar Jun 22 '21 00:06 lukeed

You can mark the release as a draft release though.

See #6 – I have draft: true set and it's ignored

lukeed avatar Jun 22 '21 00:06 lukeed

Yeah, i don't think this is possible to solve inside tauri-action in a sane way, but we now have a readme example which uses a different action to make the draft release public after all assets were uploaded. https://github.com/tauri-apps/tauri-action#uploading-the-artifacts-to-a-release

FabianLars avatar Mar 13 '23 15:03 FabianLars