Skip to content

Commit 5d0c712

Browse files
committed
attempt github action work
1 parent 9ed8168 commit 5d0c712

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/bump.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+

0 commit comments

Comments
 (0)