Skip to content

Commit 93ae67a

Browse files
authored
Tickets API Swagger UI도 웹으로 발행 (#10)
GitHub Actions를 이용해 Tickets API의 Swagger UI 문서를 만들고, GitHub Pages로 배포.
1 parent 09bbade commit 93ae67a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/todo-app.yml renamed to .github/workflows/build-and-deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate document for todo-app
1+
name: Build and Deploy
22

33
on:
44
push:
@@ -17,12 +17,18 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20-
- name: Generate Swagger UI
20+
- name: Generate Swagger UI for Todo App
2121
uses: Legion2/swagger-ui-action@v1
2222
with:
2323
output: public/todo-app
2424
spec-file: ./todo-app/openapi.yaml
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Generate Swagger UI for Tickets API
27+
uses: Legion2/swagger-ui-action@v1
28+
with:
29+
output: public/tickets
30+
spec-file: ./tickets/openapi.yaml
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2632
- name: Deploy to GitHub Pages
2733
uses: peaceiris/actions-gh-pages@v3
2834
with:

tickets/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# Tickets application API specification
2+
3+
Swagger UI:
4+
<https://dal-lab.github.io/openapi-sample/tickets>

0 commit comments

Comments
 (0)