Skip to content

Commit beb4325

Browse files
committed
chore: Update content-watcher OpenAPI artifacts download step
1 parent ebd211b commit beb4325

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/deploy-gh-pages.yaml

+10-11
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
service:
2323
- account
2424
- content-watcher
25-
# - content-publishing
25+
- content-publishing
2626
# - graph
2727

2828
steps:
@@ -88,29 +88,28 @@ jobs:
8888
name: openapi-account
8989
path: ./docs/account
9090

91-
- name: Upload final result to GitHub Pages
92-
uses: actions/upload-pages-artifact@v3
93-
with:
94-
path: ./docs
95-
9691
- name: Download content-watcher OpenAPI artifacts
9792
uses: actions/download-artifact@v4
9893
with:
9994
name: openapi-content-watcher
10095
path: ./docs/content-watcher
10196

102-
# - name: Download content-publishing OpenAPI artifacts
103-
# uses: actions/download-artifact@v4
104-
# with:
105-
# name: openapi-content-publishing
106-
# path: ./docs/content-publishing
97+
- name: Download content-publishing OpenAPI artifacts
98+
uses: actions/download-artifact@v4
99+
with:
100+
name: openapi-content-publishing
101+
path: ./docs/content-publishing
107102

108103
# - name: Download graph OpenAPI artifacts
109104
# uses: actions/download-artifact@v4
110105
# with:
111106
# name: openapi-graph
112107
# path: ./docs/graph
113108

109+
- name: Upload final result to GitHub Pages
110+
uses: actions/upload-pages-artifact@v3
111+
with:
112+
path: ./docs
114113
- name: Deploy to GitHub Pages
115114
id: deployment
116115
uses: actions/deploy-pages@v4

services/content-publishing/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "dist/apps/api/main.js",
66
"scripts": {
77
"build": "nest build api && nest build worker",
8-
"build:swagger": "npx ts-node -r tsconfig-paths/register apps/api/src/build-openapi.ts",
9-
"build:metadata": "npx ts-node apps/api/src/generate-metadata.ts",
10-
"generate-swagger-ui": "npx --yes @redocly/cli build-docs swagger.json --output=./docs/index.html",
8+
"build:swagger": "set -a ; . ./env.template ; npx ts-node -r tsconfig-paths/register apps/api/src/build-openapi.ts",
9+
"build:metadata": "set -a ; . ./env.template ; npx ts-node apps/api/src/generate-metadata.ts",
10+
"generate-swagger-ui": "set -a ; . ./env.template ; npx --yes @redocly/cli build-docs swagger.json --output=./docs/index.html",
1111
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
1212
"start:api": "nest start api",
1313
"start:api:watch": "nest start api --watch",

0 commit comments

Comments
 (0)