Skip to content

Merge pull request #17 from canonical/renovate/ruff-0.x-lockfile #18

Merge pull request #17 from canonical/renovate/ruff-0.x-lockfile

Merge pull request #17 from canonical/renovate/ruff-0.x-lockfile #18

name: Publish OpenAPI on GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-openapi-html:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: [self-hosted, linux, large]
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: mkdir -p dist
- run: npx @redocly/cli build-docs ./schemas/openapi.yaml -o ./dist/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './server/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4