Skip to content

Commit

Permalink
add action to deploy swagger ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Sep 6, 2024
1 parent 8213d28 commit 6733b4d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/swagger-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Swagger UI deployment
on:
push:
branches: [ main ]
workflow_dispatch: {}

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
version: "5.3.1"
output: swagger-ui
spec-file: templatespiler-server/openapi.json
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: swagger-ui

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 6733b4d

Please sign in to comment.