From c28b6d1c711f20d3f6401ed30952d5f5fb60947f Mon Sep 17 00:00:00 2001 From: Jack Zhuang <50353452+hotlong@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:39:40 +0800 Subject: [PATCH] build pdf --- .github/workflows/deploy-pdf.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml index 28dc862..af4a93b 100644 --- a/.github/workflows/deploy-pdf.yml +++ b/.github/workflows/deploy-pdf.yml @@ -23,7 +23,7 @@ jobs: run: npm run build - name: Run Docusaurus site - run: npm run serve + run: npm run docusaurus serve -- --no-open & - name: Build Developer PDF run: npx docs-to-pdf --initialDocURLs="http://localhost:3000/zh-CN/developer/" --contentSelector="article" --paginationSelector="a.pagination-nav__link.pagination-nav__link--next" --outputPDFFilename="build/steedos-developer-zh-CN.pdf" --excludeSelectors=".breadcrumbs,section.row,.theme-doc-footer" --pdfMargin="80,60,80,60" --coverTitle="Steedos Developer Documentaion" --baseUrl="http://localhost:3000/zh-CN/developer/" --excludePaths="/zh-CN/developer/api/openapi" @@ -47,6 +47,9 @@ jobs: AWS_S3_REGION: cn-northwest-1 SOURCE_DIR: ./build/ - - name: Invalidate CloudFront distribution - run: | - aws cloudfront create-invalidation --distribution-id E3PZXWVY8YMW6P --paths "/*" \ No newline at end of file + # - name: Invalidate CloudFront distribution + # run: | + # aws cloudfront create-invalidation --distribution-id E3PZXWVY8YMW6P --paths "/*" + + - name: Cleanup + run: pkill node \ No newline at end of file