Spaces:
Sleeping
Sleeping
Filip
commited on
Commit
·
1b1f91f
1
Parent(s):
ae72632
update
Browse files
.github/workflows/sync-to-hf-space.yml
CHANGED
@@ -3,22 +3,21 @@ name: Sync to Hugging Face Space
|
|
3 |
on:
|
4 |
push:
|
5 |
branches:
|
6 |
-
- main
|
7 |
|
8 |
jobs:
|
9 |
deploy:
|
10 |
runs-on: ubuntu-latest
|
11 |
|
12 |
steps:
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
--repo-id forestav/llm-as-a-judge \
|
23 |
--local-path . \
|
24 |
--commit-message "Auto-sync from GitHub"
|
|
|
3 |
on:
|
4 |
push:
|
5 |
branches:
|
6 |
+
- main # Replace with your default branch if different
|
7 |
|
8 |
jobs:
|
9 |
deploy:
|
10 |
runs-on: ubuntu-latest
|
11 |
|
12 |
steps:
|
13 |
+
- name: Checkout repository
|
14 |
+
uses: actions/checkout@v3
|
15 |
|
16 |
+
- name: Sync with Hugging Face Space
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: |
|
20 |
+
huggingface-cli repo sync-to-space \
|
21 |
+
--repo-id <YOUR_HF_USERNAME>/<YOUR_SPACE_NAME> \
|
|
|
22 |
--local-path . \
|
23 |
--commit-message "Auto-sync from GitHub"
|