Spaces:
Build error
Build error
retrial to fix the deploy.yml
Browse files
.github/workflows/sync-to-hf.yml
CHANGED
|
@@ -16,5 +16,11 @@ jobs:
|
|
| 16 |
- name: Push to hub
|
| 17 |
env:
|
| 18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
|
|
|
| 19 |
run: |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- name: Push to hub
|
| 17 |
env:
|
| 18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 19 |
+
HF_USERNAME: MMADS
|
| 20 |
+
SPACE_NAME: MoralFoundationsClassifier-app
|
| 21 |
run: |
|
| 22 |
+
# Add HuggingFace Space as remote
|
| 23 |
+
git remote add space https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${SPACE_NAME}
|
| 24 |
+
|
| 25 |
+
# Force push to space
|
| 26 |
+
git push --force space main
|