Spaces:
Sleeping
Sleeping
Manasa B Rao
commited on
Commit
•
3c5e9c9
1
Parent(s):
eb63950
Update sync_to_hugging_face.yml
Browse files
.github/workflows/sync_to_hugging_face.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
name: Sync to Hugging Face
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
@@ -10,11 +10,19 @@ jobs:
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
-
-
|
|
|
14 |
with:
|
15 |
-
fetch-depth: 0
|
16 |
lfs: true
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
-
run:
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face Hub
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
+
- name: Checkout repository
|
14 |
+
uses: actions/checkout@v3
|
15 |
with:
|
|
|
16 |
lfs: true
|
17 |
+
|
18 |
+
- name: Set up Git
|
19 |
+
run: |
|
20 |
+
git config --global user.email "you@example.com"
|
21 |
+
git config --global user.name "Your Name"
|
22 |
+
|
23 |
+
- name: Push to Hugging Face Hub
|
24 |
env:
|
25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
26 |
+
run: |
|
27 |
+
git remote add huggingface https://huggingface.co/spaces/Manasa1/Fashion_Recommender_System
|
28 |
+
git push --force https://Manasa1:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Manasa1/Fashion_Recommender_System main
|