This commit is contained in:
@@ -18,26 +18,31 @@ jobs:
|
||||
username: ${{ VARS.USER }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: 🔎 Verify Files on Runner
|
||||
run: |
|
||||
echo "Verifying checked-out files exist at: ${{ github.workspace }}"
|
||||
ls -laR ${{ github.workspace }}
|
||||
|
||||
- name: Generate Static Image Assets
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "${PWD}:/work" \
|
||||
-v "${{ github.workspace }}:/work" \
|
||||
-w "/work" \
|
||||
archlinux:latest \
|
||||
bash -c '
|
||||
set -e
|
||||
echo "--- Installing dependencies in container ---"
|
||||
pacman -Syu --noconfirm imagemagick libwebp ghostscript
|
||||
echo "--- Files inside container at /work ---"
|
||||
ls -laR
|
||||
|
||||
echo "--- Making scripts executable ---"
|
||||
chmod +x ./scripts/first_page_image.sh
|
||||
chmod +x ./scripts/generate_webp.sh
|
||||
echo "--- Installing dependencies ---"
|
||||
pacman -Syu --noconfirm imagemagick webp ghostscript
|
||||
|
||||
echo "--- Generating PNGs from PDFs ---"
|
||||
echo "--- Generating assets ---"
|
||||
chmod +x ./scripts/*.sh
|
||||
bash ./scripts/first_page_image.sh
|
||||
|
||||
echo "--- Generating WebP images ---"
|
||||
bash ./scripts/generate_webp.sh
|
||||
|
||||
echo "--- Asset generation complete ---"
|
||||
'
|
||||
|
||||
- name: Set up Node.js
|
||||
|
||||
Reference in New Issue
Block a user