diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index f36e72ab..35539d40 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -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