Spaces:
Sleeping
Sleeping
Download .github/workflows/deploy.yml from PoppyPepperPie2894/syncnet_space: direct link, hf CLI and curl.
- Browser
- Download file 674 Bytes
-
https://huggingface.co/spaces/PoppyPepperPie2894/syncnet_space/resolve/main/.github/workflows/deploy.yml
- Command line
-
hf download hf://spaces/PoppyPepperPie2894/syncnet_space/.github/workflows/deploy.yml
-
curl -L -o deploy.yml https://huggingface.co/spaces/PoppyPepperPie2894/syncnet_space/resolve/main/.github/workflows/deploy.yml
674 Bytes
| name: Deploy to Render | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Deploy to Render | |
| env: | |
| RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }} | |
| RENDER_SERVICE_ID: ${{ secrets.RENDER_SERVICE_ID }} | |
| run: | | |
| curl -X POST "https://api.render.com/v1/services/$RENDER_SERVICE_ID/deploys" \ | |
| -H "Authorization: Bearer $RENDER_API_KEY" \ | |
| -H "Content-Type: application/json" | |
| - name: Deployment Status | |
| run: echo "Deployment triggered successfully!" | |