-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1 KB
/
deploy.yml
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: My Deploy
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch: # Enables manual triggering
jobs:
deploy-to-production:
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.PRODUCTION_RENDER_SERVICE_ID }}
api-key: ${{ secrets.PRODUCTION_RENDER_API_KEY }}
wait-for-success: true
deploy-to-develop:
if: github.ref == 'refs/heads/develop' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Deploy to develop
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.STAGING_RENDER_SERVICE_ID }}
api-key: ${{ secrets.STAGING_RENDER_API_KEY }}
wait-for-success: true