Skip to content

Commit 431235b

Browse files
committed
Trying new GHA for taking a screenshot: flameddd/screenshots-ci-action
1 parent d8f253c commit 431235b

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/generate-mindmap.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,31 @@ jobs:
2929
run: npm install
3030
- name: Run Markmap
3131
run: npx markmap --no-toolbar innersource-program-mind-map.md -o innersource-program-mind-map.html
32-
- name: Screenshot Markmap Website
33-
id: screenshot-generator
34-
uses: swinton/screenshot-website@v1.x
32+
# - name: Screenshot Markmap Website
33+
# id: screenshot-generator
34+
# uses: swinton/screenshot-website@v1.x
35+
# with:
36+
# source: pattern-categorization/innersource-program-mind-map.html
37+
# destination: innersource-program-mind-map.png
38+
# full-page: false
39+
# - name: Copy Screenshot
40+
# run: cp ${{ steps.screenshot-generator.outputs.path }} .
41+
# - name: Reduce Screenshot Size (PNG)
42+
# run: npx optipng innersource-program-mind-map.png
43+
# - name: Commit Changes
44+
# uses: stefanzweifel/git-auto-commit-action@v4
45+
# with:
46+
# commit_message: Re-creating markmap and screenshot
47+
- name: install puppeteer-headful
48+
uses: mujo-code/puppeteer-headful@master # Required for headful puppeteer
49+
env:
50+
CI: 'true'
51+
- name: screenshots-ci-action
52+
uses: flameddd/screenshots-ci-action@master
3553
with:
36-
source: pattern-categorization/innersource-program-mind-map.html
37-
destination: innersource-program-mind-map.png
38-
full-page: false
39-
- name: Copy Screenshot
40-
run: cp ${{ steps.screenshot-generator.outputs.path }} .
41-
- name: Reduce Screenshot Size (PNG)
42-
run: npx optipng innersource-program-mind-map.png
43-
- name: Commit Changes
44-
uses: stefanzweifel/git-auto-commit-action@v4
45-
with:
46-
commit_message: Re-creating markmap and screenshot
54+
url: pattern-categorization/innersource-program-mind-map.html
55+
# devices: iPhone 6,iPhone 6 landscape,Nexus 7,Pad Pro,Galaxy S III landscape,iPad Pro landscape
56+
# - uses: actions/upload-artifact@v2 # Upload screenshots to Actions Artifacts via actions/upload-artifact@v2
57+
# with:
58+
# path: screenshots
59+
# name: Download-screenshots

0 commit comments

Comments
 (0)