Spaces:
Sleeping
Sleeping
Download .github/workflows/sync-huggingface-space.yml from vinith17/CodeBug: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/.github/workflows/sync-huggingface-space.yml
- Command line
-
hf download hf://spaces/vinith17/CodeBug/.github/workflows/sync-huggingface-space.yml
-
curl -L -o sync-huggingface-space.yml https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/.github/workflows/sync-huggingface-space.yml
1.23 kB
| # Mirrors this GitHub repo to your Hugging Face Space on every push to main. | |
| # | |
| # Setup (one-time): | |
| # 1. GitHub β Settings β Secrets and variables β Actions β New secret: HF_TOKEN | |
| # (Hugging Face token with write access to the Space β create at huggingface.co/settings/tokens) | |
| # 2. If your Space is not "vinith17/CodeBug", edit huggingface_repo_id in this file. | |
| # | |
| # If the Space is also "Connected to GitHub" in HF Settings, pick ONE sync method to avoid conflicts | |
| # (either disconnect native GitHub on HF and rely on this Action, or fix the native integration and | |
| # delete this workflow). | |
| # | |
| # Docs: https://huggingface.co/docs/hub/main/spaces-github-actions | |
| name: Sync to Hugging Face Space | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Sync GitHub β Hugging Face Space | |
| uses: huggingface/hub-sync@v0.1.0 | |
| with: | |
| github_repo_id: ${{ github.repository }} | |
| # Must match your Space: https://huggingface.co/spaces/<user>/<name> | |
| huggingface_repo_id: vinith17/CodeBug | |
| hf_token: ${{ secrets.HF_TOKEN }} | |
| repo_type: space | |
| space_sdk: docker | |