diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 7a7adac..5fa0072 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -1,4 +1,4 @@ -name: Deploy API to VPS +name: Deploy API to Render and VPS on: workflow_run: @@ -10,7 +10,15 @@ on: - completed jobs: - deploy: + deploy-render: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: install curl + run: sudo apt-get update && sudo apt-get install -y curl + - name: send Render API deploy webhook + run: curl ${{ secrets.RENDER_WEBHOOK }} + deploy-vps: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: