Spaces:
Running
Running
lucabadiali
commited on
Commit
·
b3d23af
1
Parent(s):
8eabda0
AA
Browse files
.github/workflows/huggingface-space-deploy.yml
CHANGED
|
@@ -3,8 +3,7 @@ name: Deploy to Hugging Face Space
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
-
- main
|
| 7 |
-
# optional: allow manual trigger from Actions tab
|
| 8 |
workflow_dispatch:
|
| 9 |
|
| 10 |
jobs:
|
|
@@ -22,8 +21,5 @@ jobs:
|
|
| 22 |
env:
|
| 23 |
HF_TOKEN: ${{ secrets.HF_HUB_TOKEN }}
|
| 24 |
run: |
|
| 25 |
-
# Add the HF Space as a remote
|
| 26 |
git remote add space https://huggingface.co/spaces/lucabadiali/ML_OPS_Project
|
| 27 |
-
|
| 28 |
-
# Push the current commit on main to the Space's main
|
| 29 |
-
git push --force https://lucabadiali:$HF_TOKEN@huggingface.co/spaces/lucabadiali/ML_OPS_Project HEAD:main
|
|
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
+
- main
|
|
|
|
| 7 |
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
|
|
|
| 21 |
env:
|
| 22 |
HF_TOKEN: ${{ secrets.HF_HUB_TOKEN }}
|
| 23 |
run: |
|
|
|
|
| 24 |
git remote add space https://huggingface.co/spaces/lucabadiali/ML_OPS_Project
|
| 25 |
+
git push --force https://__token__:${HF_TOKEN}@huggingface.co/spaces/lucabadiali/ML_OPS_Project HEAD:main
|
|
|
|
|
|