Deploying on push
You can have a workflow deploy your app when code is pushed to main. Store secrets (like deploy tokens) in the repo's Settings > Secrets and read them with secrets.NAME. Vercel and Render can also auto-deploy on push without any workflow file.
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- name: Trigger Render deploy
run: curl -X POST "${{ secrets.RENDER_DEPLOY_HOOK }}"