Spaces:
Sleeping
Sleeping
name: Sync to Hugging Face Space | |
on: | |
push: | |
branches: | |
- main # Replace with your default branch if different | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "[email protected]" | |
- name: Push to Hugging Face Space | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
run: | | |
export REPO_URL="https://huggingface.co/spaces/forestav/llm-as-a-judge" | |
git remote add hf https://user:${HF_TOKEN}@huggingface.co/spaces/forestav/llm-as-a-judge | |
git push hf HEAD:main --force | |