Skip to content

Improve SonarCloud quality ratings (#35) #38

Improve SonarCloud quality ratings (#35)

Improve SonarCloud quality ratings (#35) #38

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'docs-site/**'
- 'specs/**'
- 'scripts/generate-asyncapi-html.mjs'
- '.github/workflows/docs-deploy.yml'
workflow_dispatch:
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '24'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate AsyncAPI HTML bundles
run: pnpm docs:asyncapi
- name: Build manifest
run: node docs-site/scripts/build-manifest.mjs
- name: Build docs site
run: pnpm docs:build
- name: Merge TypeDoc /api/ from gh-pages
run: node docs-site/scripts/fetch-typedoc.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: docs-site/dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5