This repository was archived by the owner on Jul 25, 2024. It is now read-only.
Bump @nestjs/testing from 10.3.8 to 10.3.10 (#90) #17
This file contains hidden or 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: 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 |