From 132e9b20bd62ae2074adaf41fcdab362e6061f9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89ric=20NICOLAS=20=28ccjmne=29?= <ccjmne@gmail.com>
Date: Tue, 15 Oct 2024 01:14:54 +0200
Subject: [PATCH]

---
 .github/workflows/build-deploy.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml
index 7788e59f..71585892 100644
--- a/.github/workflows/build-deploy.yml
+++ b/.github/workflows/build-deploy.yml
@@ -20,7 +20,7 @@ jobs:
 
     - uses: awalsh128/cache-apt-pkgs-action@latest
       with:
-        packages: qpdf
+        packages: exiftool qpdf
         version: 1.0
 
     - uses: actions/setup-node@v4
@@ -35,11 +35,13 @@ jobs:
 
     - name: Verify manual hyphenation
       run: |
-        mv dist/final.pdf ${{ env.resume-file }}
+        mv dist/final.pdf .
+        cp final.pdf ${{ env.resume-file }}
         npx webpack --mode production --env HYPHENATE=yes --env OUTPUT=shy.pdf
         # Strip EXIF metadata, set (auto-generated, undeletable) ID to fixed value
-        qpdf --object-streams=disable ${{ env.resume-file }} l
-        qpdf --object-streams=disable dist/shy.pdf           r
+        exiftool -all= final.pdf dist/shy.pdf
+        qpdf --object-streams=disable final.pdf    l
+        qpdf --object-streams=disable dist/shy.pdf r
         sed -i "s|/ID \[[^]]*\]|/ID [<ID1><ID2>]|" l r
         diff --brief l r