MMADS commited on
Commit
d5daefc
·
1 Parent(s): cad1ef0

retrial to fix the deploy.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +7 -1
.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
- git push https://MMADS:$HF_TOKEN@huggingface.co/spaces/MoralFoundationsClassifier-app main
 
 
 
 
 
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