bug: space deployment
Browse files
.github/workflows/huggingface-sync.yml
CHANGED
|
@@ -3,6 +3,7 @@ name: Deploy to Hugging Face Space
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches: [main]
|
|
|
|
| 6 |
|
| 7 |
jobs:
|
| 8 |
sync:
|
|
@@ -34,8 +35,9 @@ jobs:
|
|
| 34 |
huggingface-cli login --token $HF_TOKEN --add-to-git-credential
|
| 35 |
|
| 36 |
- name: Push to Hugging Face Space
|
|
|
|
|
|
|
| 37 |
run: |
|
| 38 |
-
git remote add space https://huggingface.co/spaces/JeffYang52415/LLMEval-Dataset-Parser || true
|
| 39 |
git fetch space || true
|
| 40 |
-
# Force push to ensure sync, use with caution
|
| 41 |
git push -f space main:main
|
|
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches: [main]
|
| 6 |
+
workflow_dispatch:
|
| 7 |
|
| 8 |
jobs:
|
| 9 |
sync:
|
|
|
|
| 35 |
huggingface-cli login --token $HF_TOKEN --add-to-git-credential
|
| 36 |
|
| 37 |
- name: Push to Hugging Face Space
|
| 38 |
+
env:
|
| 39 |
+
HF_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
|
| 40 |
run: |
|
| 41 |
+
git remote add space "https://JeffYang52415:$HF_TOKEN@huggingface.co/spaces/JeffYang52415/LLMEval-Dataset-Parser" || true
|
| 42 |
git fetch space || true
|
|
|
|
| 43 |
git push -f space main:main
|