From 13949bfba8d284ac330548895616a91f5df67b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20NICOLAS=20=28ccjmne=29?= Date: Tue, 15 Oct 2024 01:26:04 +0200 Subject: [PATCH] --- .github/workflows/build-deploy.yml | 35 ++++++++---------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 71585892..95aab2a0 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -18,11 +18,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: awalsh128/cache-apt-pkgs-action@latest - with: - packages: exiftool qpdf - version: 1.0 - - uses: actions/setup-node@v4 with: node-version: ${{ env.node-version }} @@ -31,25 +26,13 @@ jobs: - name: Webpack build run: | yarn install - npx webpack --mode production --env HYPHENATE=no --env OUTPUT=final.pdf - - - name: Verify manual hyphenation - run: | - 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 - 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 []|" l r - diff --brief l r + npx webpack --mode production --env HYPHENATE=no --env OUTPUT=${{ env.resume-file }} - name: Upload resume artifact uses: actions/upload-artifact@v4 with: name: ${{ env.artifact-id }} - path: ${{ env.resume-file }} + path: dist/${{ env.resume-file }} deploy: runs-on: ubuntu-latest @@ -70,10 +53,10 @@ jobs: - name: Compute short SHA run: echo SHORT_SHA=`echo ${GITHUB_SHA::7}` >> $GITHUB_ENV - - name: Deploy to GitHub Pages - # TODO: Consider using the official `deploy-pages` and `upload-pages-artifact` GitHub Actions - uses: peaceiris/actions-gh-pages@v3 - with: - publish_dir: . - github_token: ${{ secrets.GITHUB_TOKEN }} - full_commit_message: Redeploy for ${{ env.SHORT_SHA }} + # - name: Deploy to GitHub Pages + # # TODO: Consider using the official `deploy-pages` and `upload-pages-artifact` GitHub Actions + # uses: peaceiris/actions-gh-pages@v3 + # with: + # publish_dir: . + # github_token: ${{ secrets.GITHUB_TOKEN }} + # full_commit_message: Redeploy for ${{ env.SHORT_SHA }}