mghfuran's picture
ci: initialize github actions workflow for automatic huggingface deployment
fc6bf70
Raw
History Blame Contribute Delete
540 Bytes
name: Sync to Hugging Face Hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Install Git LFS
run: git lfs install
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git push --force https://mghfuran:$HF_TOKEN@huggingface.co/spaces/mghfuran/ZKnowledgeAgent main