Skip to content

Commit 39d2ade

Browse files
mfuntowiczdanieldk
andauthored
misc(upload): specifically define what folder to allow uploading (#180)
* misc(upload): specifically define what folder to allow uploading. Especially as Windows build have a lot of other folders around torch** * chore: fu * chore: fu * Update src/kernels/cli.py Co-authored-by: Daniël de Kok <[email protected]> --------- Co-authored-by: Daniël de Kok <[email protected]>
1 parent 6a7382f commit 39d2ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/kernels/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def upload_kernels(args):
244244
path_in_repo="build",
245245
delete_patterns=list(delete_patterns),
246246
commit_message="Build uploaded using `kernels`.",
247+
allow_patterns=["torch-*"],
247248
)
248249
print(f"✅ Kernel upload successful. Find the kernel in https://hf.co/{repo_id}.")
249250

0 commit comments

Comments
 (0)