File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Check & deploy API documentation
3
+ permissions :
4
+ contents : read
5
+ pull-requests : write
6
+ on :
7
+ push :
8
+ branches :
9
+ - main
10
+ pull_request :
11
+ branches :
12
+ - main
13
+ jobs :
14
+ deploy-doc :
15
+ if : ${{ github.event_name == 'push' }}
16
+ name : Deploy API documentation on Bump.sh
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Set up JDK
23
+ uses : actions/setup-java@v2
24
+ with :
25
+ java-version : ' 21'
26
+
27
+ - name : Build and run the application
28
+ run : |
29
+ ./mvnw clean package spring-boot:run &
30
+
31
+ - name : Wait for the application to start
32
+ run : sleep 30
33
+
34
+ - name : Deploy API documentation
35
+ uses : bump-sh/github-action@v1
36
+ with :
37
+ doc : spring-code-first
38
+ token : ${{secrets.BUMP_TOKEN}}
39
+ file : http://localhost:8080/openapi
40
+
41
+
42
+
You can’t perform that action at this time.
0 commit comments