Spaces:
Configuration error
Configuration error
Download .github/workflows/deploy-huggingface.yml from Sivaneshakumar/sanjeevani-api: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.github/workflows/deploy-huggingface.yml
- Command line
-
hf download hf://spaces/Sivaneshakumar/sanjeevani-api/.github/workflows/deploy-huggingface.yml
-
curl -L -o deploy-huggingface.yml https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-api/resolve/main/.github/workflows/deploy-huggingface.yml
894 Bytes
| name: Deploy Backend to Hugging Face | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'app.py' | |
| - 'requirements.txt' | |
| - 'backend/**' | |
| - 'uploads/**' | |
| - '.github/workflows/deploy-huggingface.yml' | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Deploy Backend | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Deploy backend to Hugging Face | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git push https://Sivaneshakumar:${HF_TOKEN}@huggingface.co/spaces/Sivaneshakumar/sanjeevani-api main --force | |