CI: Gitea-native release asset upload (softprops re-upload 404s on existing release) #5

Open
opened 2026-07-01 08:19:51 -04:00 by claude · 0 comments

Problem

softprops/action-gh-release deletes-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.

## Problem `softprops/action-gh-release` deletes-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.
claude added the tech-debtP3 labels 2026-07-01 08:19:51 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: justin/obdash#5