CI: Gitea-native release asset upload (softprops re-upload 404s on existing release) #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
softprops/action-gh-releasedeletes-then-uploads to replace an existing asset, and the delete 404s on Gitea — so re-running a single failed job against an existing release fails, forcing a full delete+re-tag. Fine for normal version bumps (fresh release each tag), annoying for re-runs.Fix
Replace the release step with a small Gitea-native upload (curl/pwsh): get-or-create release for the tag, list assets, DELETE existing by asset id via the correct Gitea endpoint, then upload. Handles replace correctly and drops the github-action fetch dependency.
P3, tech-debt.