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