Spaces:
Running
Running
Fix HF deployment workflow syntax error
Browse files
.github/workflows/deploy-hf-space.yaml
CHANGED
|
@@ -19,15 +19,11 @@ jobs:
|
|
| 19 |
- name: Push to HuggingFace Space
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
| 22 |
run: |
|
| 23 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 24 |
git config --global user.name "github-actions[bot]"
|
| 25 |
-
|
| 26 |
-
# Add HuggingFace remote if not exists
|
| 27 |
-
git remote add hf https://huggingface.co/spaces/${{ secrets.HF_SPACE_NAME }} || true
|
| 28 |
-
|
| 29 |
-
# Push to HuggingFace
|
| 30 |
-
git push https://user:$HF_TOKEN@huggingface.co/spaces/${{ secrets.HF_SPACE_NAME }} main:main
|
| 31 |
|
| 32 |
- name: Deployment Status
|
| 33 |
run: |
|
|
|
|
| 19 |
- name: Push to HuggingFace Space
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 22 |
+
HF_SPACE_NAME: ${{ secrets.HF_SPACE_NAME }}
|
| 23 |
run: |
|
| 24 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 25 |
git config --global user.name "github-actions[bot]"
|
| 26 |
+
git push https://user:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE_NAME main:main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
- name: Deployment Status
|
| 29 |
run: |
|