Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ccjmne committed Oct 14, 2024
1 parent 132e9b2 commit 13949bf
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 [<ID1><ID2>]|" 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
Expand All @@ -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 }}

0 comments on commit 13949bf

Please sign in to comment.