update action #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |