release: publish gitea allowlist and harden bundle deploy
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user