-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.07 KB
/
deploy.yml
File metadata and controls
35 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy-backend:
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- uses: JorgeLNJunior/render-deploy@9978fcd7ae237039fc3337c47ac2e1018d693df3 #v1.4.5
with:
service_id: ${{ secrets.RENDER_BACKEND_SERVICE_ID }}
api_key: ${{ secrets.RENDER_API_KEY }}
clear_cache: true # Optional: Clear Render's build cache
wait_deploy: true
github_deployment: true
deployment_environment: 'production'
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy-frontend:
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- uses: JorgeLNJunior/render-deploy@v1.4.5
with:
service_id: ${{ secrets.RENDER_SERVICE_ID }}
api_key: ${{ secrets.RENDER_API_KEY }}
clear_cache: true # Optional: Clear Render's build cache
wait_deploy: true
github_deployment: true
deployment_environment: 'production'
github_token: ${{ secrets.GITHUB_TOKEN }}