Spaces:
Sleeping
Sleeping
Claude commited on
ci: use named remote for HuggingFace push
Browse filesAdds 'hf' remote before pushing to avoid inline credentials in the git push URL,
and uses || true to tolerate re-runs where the remote already exists.
https://claude.ai/code/session_017gXea9mxBQqDTAsSQd7aAq
.github/workflows/sync_to_huggingface.yml
CHANGED
|
@@ -14,4 +14,6 @@ jobs:
|
|
| 14 |
- name: Push to HuggingFace
|
| 15 |
env:
|
| 16 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 17 |
-
run:
|
|
|
|
|
|
|
|
|
| 14 |
- name: Push to HuggingFace
|
| 15 |
env:
|
| 16 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 17 |
+
run: |
|
| 18 |
+
git remote add hf https://Ma-Ri-Ba-Ku:$HF_TOKEN@huggingface.co/spaces/Ma-Ri-Ba-Ku/Picarones || true
|
| 19 |
+
git push -f hf main
|