Download .github/workflows/deploy.yml from WpiCs553/Part-1: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/WpiCs553/Part-1/resolve/main/.github/workflows/deploy.yml
- Command line
-
hf download hf://spaces/WpiCs553/Part-1/.github/workflows/deploy.yml
-
curl -L -o deploy.yml https://huggingface.co/spaces/WpiCs553/Part-1/resolve/main/.github/workflows/deploy.yml
854 Bytes
| name: Sync to Hugging Face hub | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout the repo with full history | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| # Step 2: Push to Hugging Face Space | |
| - name: Push to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| HF_USERNAME: WpiCs553 # Replace with your org or username | |
| SPACE_NAME: Part-1 # Replace with your Space name | |
| run: | | |
| git config --global user.email "action@github.com" | |
| git config --global user.name "GitHub Action" | |
| git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME | |
| git push hf main --force | |