0-Parth-D
Set up GitHub Actions deployment to Hugging Face
2eb3831
name: Deploy to Hugging Face Space
on:
push:
branches: [main]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git push --force https://parthtamu:$HF_TOKEN@huggingface.co/spaces/parthtamu/rag-code-assistant main