capital-project-agentic-system / .github /workflows /sync_to_huggingface.yml
MoEY14422's picture
Replace HF sync with direct git push method
447d182
raw
history blame contribute delete
705 Bytes
name: Sync to Hugging Face Space
on:
push:
branches:
- develop
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://MoEY14422:$HF_TOKEN@huggingface.co/spaces/MoEY14422/capital-project-agentic-system || true
git push hf HEAD:main --force