Skip to content

fix: buildind yml

fix: buildind yml #8

Workflow file for this run

name: Deployement
variables:

Check failure on line 3 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deployement

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 3, Col: 1): Unexpected value 'variables' .github/workflows/deploy.yml (Line: 40, Col: 14): Unrecognized named-value: 'service'. Located at position 1 within expression: service.RENDER_SERVICE_ID
RENDER_SERVICE_ID: "cs97c968ii6s73ev820g" # ID du service sur Render
RENDER_API_KEY: "rnd_jVLom5W5VJCXweycehqwPCUBoDnk"
on:
push:
branches:
- devops
jobs:
build:
runs-on: ubuntu-latest
container:
image: 'djelale/assistme:1.0.0'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install and build client
run: |
cd client
npm install
npm run build
- name: Install and build server
run: |
cd server
npm install
npm run build
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Render
run: |
echo "Deploying to Render..."
curl -X POST "https://api.render.com/v1/services/${{ service.RENDER_SERVICE_ID }}/deploys" \
-H "Authorization: Bearer ${{ service.RENDER_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"clearCache": false}'