Skip to content

Commit 21ad6a0

Browse files
committed
deploy/ci: render the cheat sheet as PDF and offer a link to it
The Cheat Sheet is quite useful, people might want to print it out... Suggested-by: Scott Chacon <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 63d3ce9 commit 21ad6a0

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/actions/deploy-to-github-pages/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ runs:
8888
npm install node-html-parser &&
8989
node ./script/graphviz-ssr.js
9090
91+
- name: offer PDF version of the cheat sheet
92+
shell: bash
93+
run: |
94+
npm install @playwright/test &&
95+
node script/html-to-pdf.js -i public/cheat-sheet.html
96+
9197
- name: run Pagefind ${{ env.PAGEFIND_VERSION }} to build the search index
9298
shell: bash
9399
run: npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public
@@ -293,4 +299,4 @@ runs:
293299
if: always() && steps.playwright.outputs.result != ''
294300
with:
295301
name: playwright-report
296-
path: playwright-report/
302+
path: playwright-report/

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
npm install node-html-parser &&
4646
node ./script/graphviz-ssr.js
4747
48+
- name: Install @playwright/test
49+
run: npm install @playwright/test
50+
- name: offer PDF version of the cheat sheet
51+
run: node script/html-to-pdf.js -i public/cheat-sheet.html
52+
4853
- name: run Pagefind ${{ env.PAGEFIND_VERSION }} to build the search index
4954
run: npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public
5055

@@ -90,8 +95,6 @@ jobs:
9095
output: lychee.md
9196
jobSummary: true
9297

93-
- name: Install @playwright/test
94-
run: npm install @playwright/test
9598
- name: Run Playwright tests
9699
id: playwright
97100
env:
@@ -103,4 +106,4 @@ jobs:
103106
if: always() && steps.playwright.outputs.result != ''
104107
with:
105108
name: playwright-report
106-
path: playwright-report/
109+
path: playwright-report/

0 commit comments

Comments
 (0)