-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 1.02 KB
/
Copy pathcd.yml
File metadata and controls
33 lines (29 loc) · 1.02 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
name: CD
on:
push:
branches:
- master
jobs:
deploy-backend:
runs-on: ubuntu-latest
env:
RENDER_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }}
steps:
- name: Check for Render Hook Secret
if: env.RENDER_HOOK == ''
run: echo "::warning::RENDER_DEPLOY_HOOK secret is missing. Skipping deployment."
- name: Trigger Render Deployment
if: env.RENDER_HOOK != ''
uses: fjogeleit/http-request-action@v1
with:
url: ${{ env.RENDER_HOOK }}
method: 'GET'
# Render deploy hooks are GET or POST requests to a specific URL that triggers a deploy.
# The secret RENDER_DEPLOY_HOOK should look like: https://api.render.com/deploy/srv-...
deploy-frontend:
runs-on: ubuntu-latest
steps:
- name: Vercel Deployment Note
run: |
echo "Frontend deployment is automatically handled by Vercel's GitHub integration on pushes to master."
echo "Please ensure the Vercel project is linked to this repository."