api / .github /workflows /cd.yml
jpsoron
Update cd.yml
5f9fc35
Raw History Blame
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