credehub-ai / .github /workflows /deploy.yml
Abdul Moeed
fix: use direct git push for HF sync + port 7860 for HF Spaces
fcaf4f7
Raw
History Blame Contribute Delete
526 Bytes
name: Sync to Hugging Face Hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://moeed77:$HF_TOKEN@huggingface.co/spaces/moeed77/credehub-ai || true
git push hf main --force