release: publish gitea allowlist and harden bundle deploy

This commit is contained in:
Codex Release Bot
2026-07-09 05:12:54 +08:00
parent 74149e0d90
commit 279259092d
30 changed files with 1372 additions and 131 deletions
+5 -1
View File
@@ -14,6 +14,7 @@ EXCLUDE_NAMES = {
".venv",
".venv-py314",
".venv-py312-codex",
".venv-codex-test",
"venv",
"__pycache__",
".pytest_cache",
@@ -42,9 +43,12 @@ EXCLUDE_EXACT = {
def should_include(path: Path, rel: str) -> bool:
parts = set(Path(rel).parts)
rel_parts = Path(rel).parts
parts = set(rel_parts)
if parts & EXCLUDE_NAMES:
return False
if any(part.startswith(".venv-") for part in rel_parts):
return False
if rel in EXCLUDE_EXACT:
return False
if any(rel == exact or rel.startswith(exact + "/") for exact in EXCLUDE_EXACT):