Skip to content

dark mode fixes; width fixes (#202) #16

dark mode fixes; width fixes (#202)

dark mode fixes; width fixes (#202) #16

name: swagger-deploy
on:
workflow_dispatch: {}
push:
tags:
- v*
permissions:
contents: write
jobs:
swaggerui:
name: swaggerui
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: install swag
run: go install github.com/swaggo/swag/cmd/swag@latest
- name: Generate Swagger file
run: swag i -g pkg/server/routes.go -o docs
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
output: swagger-ui
spec-file: docs/swagger.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: swagger-ui