Publish APT packages for pre-tagged release drafts #257

Merged
parkel merged 1 commits from fix/apt-release-draft-trigger into main 2026-12-03 15:33:34 +01:00
Owner

Bug fixes

  • Start APT publishing when a release draft with a pre-existing tag goes live. Gitea 28.1.0 maps this case to the edited Activity type, so the existing published trigger missed it.
  • Keep publication and manual retries available. The publisher still fetches the release and checks that it is not a draft before any upload, verifies the asset digest and Debian metadata, and never overwrites a different package at an existing version.

Documentation

  • Explain the Gitea behavior and why editing a published release can rerun package verification.

Verification

  • Tested the original and updated triggers side by side on an isolated Gitea 28.1.0 instance. Saving a draft started no run. Publishing it with an existing annotated tag started only the updated workflow. Direct publication without a pre-existing tag started both workflows. Manual dispatch still queued a run.
  • All seven APT publication safeguard tests passed. The isolated event test did not use any production credentials or publish packages.

Closes #256.

## Bug fixes - Start APT publishing when a release draft with a pre-existing tag goes live. Gitea 28.1.0 maps this case to the `edited` Activity type, so the existing `published` trigger missed it. - Keep publication and manual retries available. The publisher still fetches the release and checks that it is not a draft before any upload, verifies the asset digest and Debian metadata, and never overwrites a different package at an existing version. ## Documentation - Explain the Gitea behavior and why editing a published release can rerun package verification. ## Verification - Tested the original and updated triggers side by side on an isolated Gitea 28.1.0 instance. Saving a draft started no run. Publishing it with an existing annotated tag started only the updated workflow. Direct publication without a pre-existing tag started both workflows. Manual dispatch still queued a run. - All seven APT publication safeguard tests passed. The isolated event test did not use any production credentials or publish packages. Closes #256.
parkel added 1 commit 2026-12-03 15:24:29 +01:00
Publish APT packages for pre-tagged release drafts
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 1m45s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Failing after 1m51s
2515ffa921
parkel merged commit 9356bc8dd8 into main 2026-12-03 15:33:34 +01:00
parkel deleted branch fix/apt-release-draft-trigger 2026-12-03 15:33:34 +01:00
Sign in to join this conversation.