Spaces:
Sleeping
Sleeping
Lalit Mahale
commited on
Update main.yml
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -2,7 +2,7 @@ name: Sync to Hugging Face hub
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
| 5 |
-
|
| 6 |
# to run this workflow manually from the Actions tab
|
| 7 |
workflow_dispatch:
|
| 8 |
|
|
@@ -14,8 +14,11 @@ jobs:
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
lfs: true
|
|
|
|
| 17 |
- name: Push to hub
|
| 18 |
env:
|
| 19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
| 5 |
+
|
| 6 |
# to run this workflow manually from the Actions tab
|
| 7 |
workflow_dispatch:
|
| 8 |
|
|
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
lfs: true
|
| 17 |
+
|
| 18 |
- name: Push to hub
|
| 19 |
env:
|
| 20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
+
run: |
|
| 22 |
+
git config --global credential.helper store
|
| 23 |
+
git remote set-url origin https://Lalit1997:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Lalit1997/chat-with-database
|
| 24 |
+
git push --force origin main
|