Skip to content

Commit

Permalink
chore: Update OpenAPI spec build workflow for graph
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworris committed Jul 24, 2024
1 parent beb4325 commit a6d814d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- account
- content-watcher
- content-publishing
# - graph
- graph

steps:
- name: Checkout
Expand Down Expand Up @@ -100,11 +100,11 @@ jobs:
name: openapi-content-publishing
path: ./docs/content-publishing

# - name: Download graph OpenAPI artifacts
# uses: actions/download-artifact@v4
# with:
# name: openapi-graph
# path: ./docs/graph
- name: Download graph OpenAPI artifacts
uses: actions/download-artifact@v4
with:
name: openapi-graph
path: ./docs/graph

- name: Upload final result to GitHub Pages
uses: actions/upload-pages-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions services/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/apps/api/main.js",
"scripts": {
"build": "nest build api && nest build worker",
"build:swagger": "npx ts-node -r tsconfig-paths/register apps/api/src/build-openapi.ts",
"build:metadata": "npx ts-node apps/api/src/generate-metadata.ts",
"generate-swagger-ui": "npx --yes @redocly/cli build-docs swagger.json --output=./docs/index.html",
"build:swagger": "set -a ; . ./env.template ; npx ts-node -r tsconfig-paths/register apps/api/src/build-openapi.ts",
"build:metadata": "set -a ; . ./env.template ; npx ts-node apps/api/src/generate-metadata.ts",
"generate-swagger-ui": "set -a ; . ./env.template ; npx --yes @redocly/cli build-docs swagger.json --output=./docs/index.html",
"generate-webhook-types": "npx openapi-client-axios-typegen graph-webhooks.openapi.yaml > libs/common/src/types/webhook-types.d.ts",
"start:api": "nest start api",
"start:api:watch": "nest start api --watch",
Expand Down

0 comments on commit a6d814d

Please sign in to comment.