Skip to content

Deploy to Render

Deploy to Render #31

name: Deploy to Render
on:
workflow_run:
workflows: [Check for syntax errors]
types: [completed]
branches: [main]
jobs:
deploy-to-render:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Deploy to production
uses: johnbeynon/render-deploy-action@v0.0.8
with:
service-id: ${{ secrets.RENDER_SERVICE_ID }}
api-key: ${{ secrets.RENDER_DEPLOYMENT_KEY }}
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'