Generate OpenAPI Specification #8
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: Generate OpenAPI Specification | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| generate-openapi: | |
| name: Generate OpenAPI JSON | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate OpenAPI specification | |
| run: npm run generate:openapi | |
| - name: Upload OpenAPI artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: openapi-spec | |
| path: openapi.json | |
| retention-days: 90 |