Skip to content

Commit 40dde00

Browse files
committed
Deploy Swagger UI to gh pages
1 parent 261b6de commit 40dde00

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/swagger.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Swagger to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
swagger:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: move
15+
run: mv gramps_webapi/data/apispec.yaml apispec.yaml
16+
- name: Generate Swagger UI
17+
uses: Legion2/swagger-ui-action@v1
18+
with:
19+
output: swagger-ui
20+
spec-file: apispec.yaml
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: swagger-ui

0 commit comments

Comments
 (0)