Spaces:
Sleeping
Sleeping
filiporestav
commited on
Create sync-to-hf-space.yml
Browse files
.github/workflows/sync-to-hf-space.yml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face Space
|
2 |
+
|
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 |
+
pip install huggingface_hub
|
21 |
+
python -m huggingface_hub repo sync-to-space \
|
22 |
+
--repo-id forestav/llm-as-a-judge \
|
23 |
+
--local-path . \
|
24 |
+
--commit-message "Auto-sync from GitHub"
|