Skip to content

Commit

Permalink
build: use Docker based PDF build environment
Browse files Browse the repository at this point in the history
Move `build-all-pdfs` to `build-all-pdfs-ci` for usage in CI.

Addresses #1043
  • Loading branch information
George Song committed Mar 11, 2021
1 parent 8e0070d commit 546882e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-pdfs-on-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
sudo apt-get install ./wkhtmltopdf.deb
- name: Build all pdfs
run: npm run build-all-pdfs
run: npm run build-all-pdfs-ci

- run: git status
- run: git pull
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"build": "gatsby build --prefix-paths",
"serve-build": "gatsby serve --prefix-paths",
"update-icons": "git submodule update --init --remote && node scripts/createIconTypes.js && node scripts/createIconNames.js",
"build-pdf": "python3 scripts/pdf/generate_pdf.py",
"build-all-pdfs": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; python3 scripts/pdf/generate_pdf.py ${i%} || exit 1; done",
"build-pdf": "docker-compose -f docker/docker-compose.build-pdf.yaml run --rm --entrypoint scripts/pdf/generate_pdf.py pdf-builder",
"build-all-pdfs": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; yarn build-pdf ${i%} || exit 1; done",
"build-all-pdfs-ci": "for i in product_docs/docs/**/*/ ; do echo \"$i\"; python3 scripts/pdf/generate_pdf.py ${i%} || exit 1; done",
"fix-mtimes": "python3 scripts/source/git-restore-mtime.py",
"count": "find product_docs/docs/ advocacy_docs/ external_sources/ -name '*.mdx' | wc -l",
"heroku-postbuild": "gatsby build",
Expand Down

0 comments on commit 546882e

Please sign in to comment.