Spaces:
Running
Running
lucabadiali
commited on
Commit
·
380dc0d
1
Parent(s):
b3d23af
AA
Browse files
.github/workflows/huggingface-space-deploy.yml
CHANGED
|
@@ -3,8 +3,8 @@ name: Deploy to Hugging Face Space
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
-
- main
|
| 7 |
-
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
deploy:
|
|
@@ -21,5 +21,10 @@ jobs:
|
|
| 21 |
env:
|
| 22 |
HF_TOKEN: ${{ secrets.HF_HUB_TOKEN }}
|
| 23 |
run: |
|
| 24 |
-
|
| 25 |
-
git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
+
- main # or your default branch
|
| 7 |
+
workflow_dispatch: # allow manual runs
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
deploy:
|
|
|
|
| 21 |
env:
|
| 22 |
HF_TOKEN: ${{ secrets.HF_HUB_TOKEN }}
|
| 23 |
run: |
|
| 24 |
+
# just for debugging; you can remove once it works
|
| 25 |
+
git remote -v
|
| 26 |
+
|
| 27 |
+
# push current commit on main to the Space's main branch
|
| 28 |
+
git push --force \
|
| 29 |
+
https://__token__:${HF_TOKEN}@huggingface.co/spaces/lucabadiali/ML_OPS_Project \
|
| 30 |
+
HEAD:main
|