From ceffa1d71dc57f48b2dc720b42cc5aa67d5d6996 Mon Sep 17 00:00:00 2001 From: Piotr Gulbinowicz Date: Tue, 19 Nov 2024 15:53:50 +0100 Subject: [PATCH] add render deploy --- .github/workflows/deploy-api.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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: