modified the workflow to use credential based login
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -13,6 +13,7 @@ jobs:
|
|
| 13 |
- uses: actions/checkout@v3
|
| 14 |
with:
|
| 15 |
fetch-depth: 0 # Required for history rewriting
|
|
|
|
| 16 |
|
| 17 |
- name: Install git-filter-repo
|
| 18 |
run: pip install git-filter-repo
|
|
@@ -25,7 +26,12 @@ jobs:
|
|
| 25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 26 |
run: |
|
| 27 |
pip install -U "huggingface_hub>=0.20.0"
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
- name: Push to hub
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
- uses: actions/checkout@v3
|
| 14 |
with:
|
| 15 |
fetch-depth: 0 # Required for history rewriting
|
| 16 |
+
lfs: true # Enable Git LFS support
|
| 17 |
|
| 18 |
- name: Install git-filter-repo
|
| 19 |
run: pip install git-filter-repo
|
|
|
|
| 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 |
|
| 32 |
- name: Push to hub
|
| 33 |
+
env:
|
| 34 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 35 |
+
run: |
|
| 36 |
+
git remote add hf https://huggingface.co/spaces/bpratik/Chatbot
|
| 37 |
+
git push --force hf main
|