This action generation swagger ui. Example: swagger-ui-action
Required Directory to scan. Default "./"
.
Required Pattern to find swagger json. Default "*.json"
.
Debug script's out.
name: Swagger
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swagger ui action
id: swagger-ui-action
uses: pjoc-team/swagger-ui-action@v0.0.2
with:
dir: './'
pattern: '*.json'
debug: 'true'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: swagger-ui
Blademainer |
Alexander Chapchuk |