Spaces:
Build error
Build error
Deployment commited on
Commit ·
e488fc6
1
Parent(s): 21629fd
Automated deployment update
Browse files- scripts/deploy_hf.py +6 -0
scripts/deploy_hf.py
CHANGED
|
@@ -115,6 +115,12 @@ def deploy_service(service_type):
|
|
| 115 |
|
| 116 |
# Always overwrite README to ensure correct configuration
|
| 117 |
shutil.copy2(project_root / readme_src, Path(temp_dir) / "README.md")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
# Commit and push
|
| 120 |
print("Pushing changes...")
|
|
|
|
| 115 |
|
| 116 |
# Always overwrite README to ensure correct configuration
|
| 117 |
shutil.copy2(project_root / readme_src, Path(temp_dir) / "README.md")
|
| 118 |
+
|
| 119 |
+
# Explicitly copy go.work and go.work.sum (needed for build, often gitignored)
|
| 120 |
+
for wfile in ["go.work", "go.work.sum"]:
|
| 121 |
+
src = project_root / wfile
|
| 122 |
+
if src.exists():
|
| 123 |
+
shutil.copy2(src, Path(temp_dir) / wfile)
|
| 124 |
|
| 125 |
# Commit and push
|
| 126 |
print("Pushing changes...")
|