From e1d302e3263338705fa586a9976bb83e2750f048 Mon Sep 17 00:00:00 2001 From: David-PX <63616767+David-PX@users.noreply.github.com> Date: Wed, 2 Oct 2024 21:24:13 -0400 Subject: [PATCH] Update ci-cd.yml --- .github/workflows/ci-cd.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 98bdbf8..a6af9ce 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -38,31 +38,3 @@ jobs: # 4. Ejecutar pruebas - name: Run tests run: npm test - - deploy: - needs: build-and-test - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' && success() - - env: - DATABASE_URL: ${{ secrets.DATABASE_URL }} - JWT_SECRET: ${{ secrets.JWT_SECRET }} - JWT_EXPIRATION: '6h' - DB_PORT: 5432 - NODE_ENV: production - PORT: 3000 - - steps: - # 1. Checkout del código - - name: Checkout code - uses: actions/checkout@v3 - - # 2. Instalar CLI de Render - - name: Install Render CLI - run: | - curl -fsSL https://cli.render.com/install.sh | sudo bash - - # 3. Desplegar en Render - - name: Deploy to Render - run: | - render deploy --service ${{ secrets.RENDER_SERVICE_ID }} --api-key ${{ secrets.RENDER_API_KEY }}