Skip to content

Commit

Permalink
build pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Nov 23, 2023
1 parent 3492ba2 commit c28b6d1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 "/*"
# - name: Invalidate CloudFront distribution
# run: |
# aws cloudfront create-invalidation --distribution-id E3PZXWVY8YMW6P --paths "/*"

- name: Cleanup
run: pkill node

0 comments on commit c28b6d1

Please sign in to comment.