This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
Bump typescript from 5.4.5 to 5.5.3 (#145) #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish OpenAPI UI to Pages | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: 'Build Pages Artifact' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate Swagger Metadata | |
run: npm run build:metadata | |
- name: Generate Swagger JSON | |
run: npm run build:swagger | |
- name: Generate Swagger UI | |
run: npm run generate-swagger-ui | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v4 | |
- name: Publish generated swagger.html to GitHub Pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./docs | |
# Deployment job | |
deploy: | |
name: 'Deploy to Pages' | |
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@v4 |