Skip to content

Merge pull request #43 from infhyroyage/dependabot/github_actions/act… #6

Merge pull request #43 from infhyroyage/dependabot/github_actions/act…

Merge pull request #43 from infhyroyage/dependabot/github_actions/act… #6

name: Deploy to Swagger UI
on:
push:
branches:
- main
paths:
- apim/apis-functions-swagger.yaml
- .github/workflows/deploy-swagger-ui.yaml
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate Swagger UI
uses: Legion2/[email protected]
with:
output: swagger-ui
spec-file: apim/apis-functions-swagger.yaml
- 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@v3