We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 261b6de commit 40dde00Copy full SHA for 40dde00
.github/workflows/swagger.yml
@@ -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
24
+ github_token: ${{ secrets.GITHUB_TOKEN }}
25
+ publish_dir: swagger-ui
0 commit comments