Download .github/workflows/cd.yml from Modulo-6/api: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/spaces/Modulo-6/api/resolve/abb37522de5ae43d93dfdca315ce81b830ce312c/.github/workflows/cd.yml
- Command line
-
hf download hf://spaces/Modulo-6/api@abb37522de5ae43d93dfdca315ce81b830ce312c/.github/workflows/cd.yml
-
curl -L -o cd.yml https://huggingface.co/spaces/Modulo-6/api/resolve/abb37522de5ae43d93dfdca315ce81b830ce312c/.github/workflows/cd.yml
695 Bytes
| name: CD | |
| on: | |
| workflow_run: | |
| workflows: ["CI"] | |
| branches: [main] | |
| types: [completed] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: > | |
| github.event_name == 'workflow_dispatch' || | |
| github.event.workflow_run.conclusion == 'success' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # importante: trae todo el historial, no shallow | |
| lfs: true # por si usás Git LFS | |
| - name: Push to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git push https://MateFerreyra:$HF_TOKEN@huggingface.co/spaces/Modulo-6/api main --force | |