reverted back to the working gitA
Browse files- .github/workflows/main.yml +13 -8
.github/workflows/main.yml
CHANGED
|
@@ -4,7 +4,6 @@ on:
|
|
| 4 |
branches: [main]
|
| 5 |
|
| 6 |
# to run this workflow manually from the Actions tab
|
| 7 |
-
|
| 8 |
workflow_dispatch:
|
| 9 |
|
| 10 |
jobs:
|
|
@@ -22,10 +21,16 @@ jobs:
|
|
| 22 |
- name: Remove large file from history
|
| 23 |
run: git filter-repo --path "Rag_Documents/layout-parser-paper.pdf" --invert-paths --force
|
| 24 |
|
| 25 |
-
- name:
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
branches: [main]
|
| 5 |
|
| 6 |
# to run this workflow manually from the Actions tab
|
|
|
|
| 7 |
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
|
|
|
| 21 |
- name: Remove large file from history
|
| 22 |
run: git filter-repo --path "Rag_Documents/layout-parser-paper.pdf" --invert-paths --force
|
| 23 |
|
| 24 |
+
- name: Log in to Hugging Face Hub
|
| 25 |
+
env:
|
| 26 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 27 |
+
run: |
|
| 28 |
+
pip install -U "huggingface_hub>=0.20.0"
|
| 29 |
+
git config --global credential.helper store
|
| 30 |
+
echo "https://bpratik:$HF_TOKEN@huggingface.co" > ~/.git-credentials
|
| 31 |
+
- name: Push to hub
|
| 32 |
+
env:
|
| 33 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 34 |
+
run: |
|
| 35 |
+
git remote add hf https://huggingface.co/spaces/bpratik/Chatbot
|
| 36 |
+
git push --force hf main
|