Skip to content

Commit c9273f0

Browse files
authored
Merge pull request #82 from pgulb/deploy-to-render
add render deploy
2 parents 53f2f46 + ceffa1d commit c9273f0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy-api.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy API to VPS
1+
name: Deploy API to Render and VPS
22

33
on:
44
workflow_run:
@@ -10,7 +10,15 @@ on:
1010
- completed
1111

1212
jobs:
13-
deploy:
13+
deploy-render:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
steps:
17+
- name: install curl
18+
run: sudo apt-get update && sudo apt-get install -y curl
19+
- name: send Render API deploy webhook
20+
run: curl ${{ secrets.RENDER_WEBHOOK }}
21+
deploy-vps:
1422
runs-on: ubuntu-latest
1523
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1624
steps:

0 commit comments

Comments
 (0)