Spaces:
Running
on
Zero
Running
on
Zero
Akis Giannoukos
commited on
Commit
·
30f47d7
1
Parent(s):
db494e8
Enhance GitHub Actions workflow by checking out full history for reliable deployment to Hugging Face
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -2,10 +2,16 @@ name: Deploy to Hugging Face
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [ main ]
|
|
|
|
| 5 |
jobs:
|
| 6 |
deploy:
|
| 7 |
runs-on: ubuntu-latest
|
| 8 |
steps:
|
| 9 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- name: Push to HF Space
|
| 11 |
-
run:
|
|
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [ main ]
|
| 5 |
+
|
| 6 |
jobs:
|
| 7 |
deploy:
|
| 8 |
runs-on: ubuntu-latest
|
| 9 |
steps:
|
| 10 |
+
- name: Checkout full history
|
| 11 |
+
uses: actions/checkout@v3
|
| 12 |
+
with:
|
| 13 |
+
fetch-depth: 0 # important: disables shallow clone
|
| 14 |
+
|
| 15 |
- name: Push to HF Space
|
| 16 |
+
run: |
|
| 17 |
+
git push --force https://akisg:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/akisg/care-notes main
|