-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (33 loc) · 893 Bytes
/
deploy-render.yml
File metadata and controls
43 lines (33 loc) · 893 Bytes
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
36
37
38
39
40
41
42
43
name: Deploy to Render
on:
workflow_run:
workflows:
- Build and Deploy Sphinx Docs
types:
- completed
branches:
- main
workflow_dispatch:
jobs:
deploy-render:
name: Deploy Spring Boot application to Render
runs-on: ubuntu-latest
if: >
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: Run unit tests
run: mvn test
- name: Build application
run: mvn -DskipTests package
- name: Trigger Render deployment
run: |
curl --fail --request POST "${{ secrets.RENDER_DEPLOY_HOOK }}"