ci: delete the old generic package file right before re-uploading it #21

Merged
layue13 merged 1 commits from ci/publish-replace-package-files into main 2026-11-10 08:46:55 +00:00
Owner

Requested by Ethyn · project thread

What

publish-tdlm.yml, step "Publish generic package tdlm-hmcl/latest": before each file is uploaded, the previous copy of that same file is deleted (a 404 is fine). Nothing else changes.

Why

The second publish (release_tag=2026.11.10-beta2, run 22403) failed with HTTP 409 uploading HMCL.exe: package file already exists: Gitea does not overwrite a generic package file, and tdlm-hmcl/latest already existed from beta1. The release step after it was skipped.

Notes

  • The delete happens per file immediately before that file's upload, so each download link is missing only for the length of its own upload.
  • The package token is the same one the step already used; no secret or other CI setting changes.

🤖 Generated with Claude Code

<!-- claude-projects-attribution --> _Requested by **Ethyn** · [project thread](https://claude.ai/code/project/chan_01DUNCDJLEksDHKpX5X5cThi?thread=cmsg_01DUNCDJLEksDHKpX5X5cThiRvLTuoiW2aLrdEVjHKAwbz)_ ## What `publish-tdlm.yml`, step "Publish generic package tdlm-hmcl/latest": before each file is uploaded, the previous copy of that same file is deleted (a 404 is fine). Nothing else changes. ## Why The second publish (`release_tag=2026.11.10-beta2`, run 22403) failed with `HTTP 409 uploading HMCL.exe: package file already exists`: Gitea does not overwrite a generic package file, and `tdlm-hmcl/latest` already existed from beta1. The release step after it was skipped. ## Notes - The delete happens per file immediately before that file's upload, so each download link is missing only for the length of its own upload. - The package token is the same one the step already used; no secret or other CI setting changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
layue13 added 1 commit 2026-11-10 08:38:03 +00:00
ci: delete the old generic package file right before re-uploading it
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Publish TDLM launcher / publish (push) Skipped
Publish TDLM launcher / noop (push) Successful in 1s
Java CI / build (pull_request) Successful in 7m28s
237c05f652
The second publish failed with HTTP 409 (package file already exists) because Gitea does not overwrite
a generic package file. The previous copy of each file is now deleted just before its upload.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
layue13 merged commit 141df8c7b8 into main 2026-11-10 08:46:55 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/HMCL#21