Release binaries are pruned automatically. The newest 5 releases per stream keep their attachments. Older releases keep their tag, notes and source archives, but their binaries are removed. Rolling tags (latest, stable, current) are never touched.
Gitea has no built-in setting for this — it runs weekly on the server as gitea-release-retention (Sundays 04:30). ARTIFACT_RETENTION_DAYS is separate and covers Actions artifacts only.