Skip to content

Commit

Permalink
chore: Update content-watcher OpenAPI artifacts download step
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheworris committed Jul 24, 2024
1 parent ebd211b commit beb4325
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
service:
- account
- content-watcher
# - content-publishing
- content-publishing
# - graph

steps:
Expand Down Expand Up @@ -88,29 +88,28 @@ jobs:
name: openapi-account
path: ./docs/account

- name: Upload final result to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs

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

# - name: Download content-publishing OpenAPI artifacts
# uses: actions/download-artifact@v4
# with:
# name: openapi-content-publishing
# path: ./docs/content-publishing
- name: Download content-publishing OpenAPI artifacts
uses: actions/download-artifact@v4
with:
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: Upload final result to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions services/content-publishing/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",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start:api": "nest start api",
"start:api:watch": "nest start api --watch",
Expand Down

0 comments on commit beb4325

Please sign in to comment.