Spaces:
Build error
Build error
Antonela Tamagnini commited on
Commit ·
da07e1a
1
Parent(s): 74aebfb
Update push_to_hf.yml
Browse files
.github/workflows/push_to_hf.yml
CHANGED
|
@@ -3,7 +3,7 @@ name: Push to Hugging Face Space
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
-
- main
|
| 7 |
|
| 8 |
jobs:
|
| 9 |
deploy:
|
|
@@ -12,13 +12,21 @@ jobs:
|
|
| 12 |
steps:
|
| 13 |
- name: Check out the repository
|
| 14 |
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
- name: Install Git LFS (Large File Support)
|
| 17 |
run: git lfs install
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- name: Push to Hugging Face
|
| 20 |
env:
|
| 21 |
-
HF_TOKEN: ${{ secrets.
|
| 22 |
run: |
|
| 23 |
git remote add hf https://user:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/mlops-cs553-fall24/Local-Chatbot
|
| 24 |
-
git push hf main
|
|
|
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
branches:
|
| 6 |
+
- main
|
| 7 |
|
| 8 |
jobs:
|
| 9 |
deploy:
|
|
|
|
| 12 |
steps:
|
| 13 |
- name: Check out the repository
|
| 14 |
uses: actions/checkout@v3
|
| 15 |
+
with:
|
| 16 |
+
fetch-depth: 0
|
| 17 |
+
lfs: true
|
| 18 |
|
| 19 |
- name: Install Git LFS (Large File Support)
|
| 20 |
run: git lfs install
|
| 21 |
|
| 22 |
+
- name: Install Python Dependencies
|
| 23 |
+
run: |
|
| 24 |
+
pip install setuptools distlib
|
| 25 |
+
pip install -r requirements.txt
|
| 26 |
+
|
| 27 |
- name: Push to Hugging Face
|
| 28 |
env:
|
| 29 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN_LOCALVERSION }}
|
| 30 |
run: |
|
| 31 |
git remote add hf https://user:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/mlops-cs553-fall24/Local-Chatbot
|
| 32 |
+
git push hf main --force
|