Skip to content

Commit

Permalink
fix: deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSenecal committed Oct 20, 2024
1 parent 1d844b9 commit a456805
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,32 @@ jobs:
cd client
npm install
npm run build
cd ..
- name: Install and build server
run: |
cd server
npm install
npm run build
deploy:
deploy_frontend:
runs-on: ubuntu-latest
needs: build
needs: build
steps:
- name: Deploy to Render
- name: Deploy frontend to Render
run: |
echo "Deploying to Render..."
curl -X POST "https://api.render.com/v1/services/${{ secrets.RENDER_SERVICE_ID }}/deploys" \
curl -X POST "https://api.render.com/v1/services/${{ secrets.FRONTEND_SERVICE_ID }}/deploys" \
-H "Authorization: Bearer ${{ secrets.RENDER_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"clearCache": false}'
deploy_backend:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy backend to Render
run: |
curl -X POST "https://api.render.com/v1/services/${{ secrets.BACKEND_SERVICE_ID }}/deploys" \
-H "Authorization: Bearer ${{ secrets.RENDER_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{"clearCache": false}'

0 comments on commit a456805

Please sign in to comment.