Bashir Gulistani
commited on
Update deploy.yml
Browse files- .github/workflows/deploy.yml +14 -2
.github/workflows/deploy.yml
CHANGED
@@ -7,19 +7,31 @@ on:
|
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
10 |
-
|
11 |
runs-on: ubuntu-latest
|
|
|
12 |
steps:
|
13 |
- name: Checkout repository
|
14 |
uses: actions/checkout@v3
|
15 |
with:
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
|
18 |
- name: Set up Git user
|
19 |
run: |
|
20 |
git config --global user.email "gulistani1999@gmail.com"
|
21 |
git config --global user.name "Bashir1999"
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
- name: Add Hugging Face remote and push to Spaces
|
24 |
env:
|
25 |
HF_TOKEN: ${{ secrets.CASE_STUDY_1_SECRET }}
|
|
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
10 |
+
sync-to-huggingface:
|
11 |
runs-on: ubuntu-latest
|
12 |
+
|
13 |
steps:
|
14 |
- name: Checkout repository
|
15 |
uses: actions/checkout@v3
|
16 |
with:
|
17 |
+
lfs: true
|
18 |
+
|
19 |
+
- name: Install Git LFS
|
20 |
+
run: |
|
21 |
+
git lfs install
|
22 |
|
23 |
- name: Set up Git user
|
24 |
run: |
|
25 |
git config --global user.email "gulistani1999@gmail.com"
|
26 |
git config --global user.name "Bashir1999"
|
27 |
|
28 |
+
- name: Add and track large files
|
29 |
+
run: |
|
30 |
+
git lfs track "*.zip"
|
31 |
+
git add .gitattributes
|
32 |
+
git add large_file.zip
|
33 |
+
git commit -m "Add large file with Git LFS"
|
34 |
+
|
35 |
- name: Add Hugging Face remote and push to Spaces
|
36 |
env:
|
37 |
HF_TOKEN: ${{ secrets.CASE_STUDY_1_SECRET }}
|