Adjust PDF link annotations and update CV header font size #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Commit PDFs | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!dependabot/**' | |
| - '!renovate/**' | |
| paths-ignore: | |
| - 'dist/pdf/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-pdf: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Typst | |
| run: | | |
| curl -sL https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-unknown-linux-musl.tar.xz \ | |
| | tar -xJ -C "$HOME/.local/bin" --strip-components=1 typst-x86_64-unknown-linux-musl/typst | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Build PDFs | |
| run: npm run build:pdf:typst | |
| - name: Commit generated PDFs | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add dist/pdf | |
| if git diff --cached --quiet; then | |
| echo "No PDF changes to commit" | |
| exit 0 | |
| fi | |
| git commit -m "chore(pdf): update generated PDFs [skip ci]" | |
| git push |