Skip to content

pjoc-team/swagger-ui-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Swagger ui action

This action generation swagger ui. Example: swagger-ui-action

Inputs

dir

Required Directory to scan. Default "./".

pattern

Required Pattern to find swagger json. Default "*.json".

debug

Debug script's out.

Example usage

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/[email protected]
        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

Contributors

blademainer
Blademainer
BigTows
Alexander Chapchuk