Skip to content

update action

update action #12

Workflow file for this run

name: Deploy to Render
on:
push:
branches:
- retina # Change to your deployment branch
paths-ignore:
- '**.md' # Ignore markdown file updates if necessary
jobs:
deploy:
if: github.event.head_commit.parent_ids # Ensures it's not an empty commit (merge commits have multiple parents)
runs-on: ubuntu-latest
steps:
- name: Trigger Render Deployment
env:
RENDER_DEPLOY_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }}
run: |
if [[ -z "$RENDER_DEPLOY_HOOK" ]]; then
echo "Error: RENDER_DEPLOY_HOOK is not set."
exit 1
fi
curl -X POST "$RENDER_DEPLOY_HOOK" || { echo "Render deployment trigger failed"; exit 1; }