thefounder03's picture
ci: add Hugging Face Spaces auto-sync workflow
ca3a43f
Raw
History Blame Contribute Delete
562 Bytes
name: Sync to Hugging Face Hub
on:
push:
branches: [main]
# Allows manual triggering of the workflow from the Actions tab
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git push --force https://thefounder03:$HF_TOKEN@huggingface.co/spaces/thefounder03/vibesec-backend main