Skip to content

feat: add deploy yml #1

feat: add deploy yml

feat: add deploy yml #1

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Deploy to Render
on:
push:
branches:
- '**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
# - name: Run build (si nécessaire)
# run: npm run build
# - name: Deploy to Render
# env:
# RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
# run: |
# curl -X POST \
# -H "Authorization: Bearer $RENDER_API_KEY" \
# -H "Content-Type: application/json" \
# --data '{"serviceId": "YOUR_RENDER_SERVICE_ID"}' \
# https://api.render.com/v1/services/YOUR_RENDER_SERVICE_ID/deploys
- name: Notify deployment status
if: success()
run: echo "Deployment to Render successful!"