Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/lcaouen/phoebus into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
lcaouen committed Aug 28, 2024
2 parents 392de16 + 448b656 commit 8e0aa06
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/build_swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,16 @@ jobs:
with:
java-version: '17'
maven-version: '3.9.6'
#- name: Build
# run: mvn --batch-mode install -DskipTests
- name: Get swagger.json
run: |
cd ./services/alarm-logger
mvn spring-boot:run &
export jobpid="$!"
sleep 30
curl http://localhost:8080
curl http://localhost:8080/v3/api-docs --output ../../docs/swagger/swagger.json
curl http://localhost:8080/v3/api-docs --output ../../docs/swagger.json
kill "$jobpid"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: |
cd docs/swagger
npm install
- name: Run converter
run: |
cd docs/swagger
node convertMarkDown.js
ls
- name: Archive swagger.md
- name: Archive swagger.json
uses: actions/upload-artifact@v4
with:
name: markdown
path: docs/swagger/swagger.md
name: swagger.json
path: docs/swagger.json

0 comments on commit 8e0aa06

Please sign in to comment.