feat: add Search flow to Maestro

This commit is contained in:
Harsh Shandilya 2023-07-25 20:17:27 +05:30
parent 7669a85f43
commit f1d30e59b0
No known key found for this signature in database
3 changed files with 18 additions and 3 deletions

View file

@ -11,8 +11,14 @@ SCREENSHOT_DIR="${SCRIPT_DIR}"/../screenshots
# Run the Maestro flow to generate the screenshots
"${SCRIPT_DIR}"/run-maestro-flows.sh feature_graphic.yml
# Use imagemagick to stitch the screenshots horizontally
convert +append "${SCREENSHOT_DIR}"/HottestPosts.png "${SCREENSHOT_DIR}"/CommentsPage.png "${SCREENSHOT_DIR}"/SavedPosts.png "${SCRIPT_DIR}"/../.github/readme_feature.png
# Use imagemagick to stitch the screenshots in a grid
montage -tile 2x0 -geometry +0+0 \
-border 0 -density 300 \
"${SCREENSHOT_DIR}"/HottestPosts.png \
"${SCREENSHOT_DIR}"/CommentsPage.png \
"${SCREENSHOT_DIR}"/SavedPosts.png \
"${SCREENSHOT_DIR}"/SearchPage.png \
"${SCRIPT_DIR}"/../.github/readme_feature.png
# Convert the resulting PNG to WebP
cwebp .github/readme_feature.png -o .github/readme_feature.webp