Spaces:
Sleeping
Sleeping
Commit
·
4206768
1
Parent(s):
e53edaf
Deploy app to Hugging Face Space
Browse files
.github/workflows/deploy_to_hf.yml
CHANGED
|
@@ -22,17 +22,9 @@ jobs:
|
|
| 22 |
git config --global user.name "GitHub Actions"
|
| 23 |
|
| 24 |
- name: Push to Hugging Face Space
|
| 25 |
-
|
| 26 |
env:
|
| 27 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 28 |
run: |
|
| 29 |
-
SPACE_URL="https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI"
|
| 30 |
-
|
| 31 |
-
# Clean remote if it already exists
|
| 32 |
git remote remove space 2>/dev/null || true
|
| 33 |
-
git remote add space
|
| 34 |
-
|
| 35 |
-
git remote -v
|
| 36 |
-
|
| 37 |
-
# Push securely using token
|
| 38 |
-
git push --force https://user:[email protected]/spaces/Mostafa174/Topic_Modeling_AI HEAD:main
|
|
|
|
| 22 |
git config --global user.name "GitHub Actions"
|
| 23 |
|
| 24 |
- name: Push to Hugging Face Space
|
|
|
|
| 25 |
env:
|
| 26 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 27 |
run: |
|
|
|
|
|
|
|
|
|
|
| 28 |
git remote remove space 2>/dev/null || true
|
| 29 |
+
git remote add space https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI
|
| 30 |
+
git push --force "https://user:[email protected]/spaces/Mostafa174/Topic_Modeling_AI" HEAD:main
|
|
|
|
|
|
|
|
|
|
|
|