This commit is contained in:
@@ -21,13 +21,24 @@ jobs:
|
||||
- name: Generate Static Image Assets
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "${PWD}":"/work" \
|
||||
-v "${PWD}:/work" \
|
||||
-w "/work" \
|
||||
archlinux:latest \
|
||||
sh -c "pacman -Syu --noconfirm imagemagick libwebp ghostscript && \
|
||||
chmod +x ./scripts/*.sh && \
|
||||
bash ./scripts/first_page_image.sh && \
|
||||
bash ./scripts/generate_webp.sh"
|
||||
bash -c '
|
||||
set -e
|
||||
echo "--- Installing dependencies in container ---"
|
||||
pacman -Syu --noconfirm imagemagick webp ghostscript
|
||||
|
||||
echo "--- Making scripts executable ---"
|
||||
chmod +x ./scripts/first_page_image.sh
|
||||
chmod +x ./scripts/generate_webp.sh
|
||||
|
||||
echo "--- Generating PNGs from PDFs ---"
|
||||
bash ./scripts/first_page_image.sh
|
||||
|
||||
echo "--- Generating WebP images ---"
|
||||
bash ./scripts/generate_webp.sh
|
||||
'
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
Reference in New Issue
Block a user