Skip to content

Commit

Permalink
modify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jihun committed Nov 28, 2024
1 parent ee28fc7 commit 878c321
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,18 @@ jobs:
pnpm install --frozen-lockfile
pnpm build
cd apps/api
mkdir docs
cp .env.example .env
npm install -g ts-node
npx ts-node -r tsconfig-paths/register src/scripts/build-swagger-docs.ts
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
- name: Redocly CLI Test
uses: fluximus-prime/redocly-cli-github-action@v1
with:
output: swagger-ui
spec-file: apps/api/swagger.json
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
args: "build-docs apps/api/swagger.json --output docs/docs.html"

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: swagger-ui
publish_dir: docs

0 comments on commit 878c321

Please sign in to comment.