Skip to content

Commit ce2b09e

Browse files
Fix env password for fonts decryption (#17)
* Add imagemagick to CI dependencies Lektor requires imagemagick for image processing during build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add encrypted fonts for CI deployment Fonts are copyrighted and excluded from git, so they were missing from CI builds. This adds an encrypted archive that gets decrypted at build time using a FONTS_PASSPHRASE secret. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix font decryption by passing passphrase via env variable Using -pass pass:... with inline secret interpolation caused shell escaping issues in CI. Using -pass env:... is the recommended approach for secrets in GitHub Actions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * vscode settings --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7d54424 commit ce2b09e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.claude/settings.local.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git push:*)",
5+
"Bash(cd:*)",
6+
"Bash(git check-ignore:*)"
7+
]
8+
}
9+
}

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
- run: uv sync
2424

2525
- name: Decrypt fonts
26-
run: openssl enc -aes-256-cbc -pbkdf2 -d -in assets/static/fonts.tar.gz.enc -pass pass:'${{ secrets.FONTS_PASSPHRASE }}' | tar xzf - -C assets/static
26+
env:
27+
FONTS_PASSPHRASE: ${{ secrets.FONTS_PASSPHRASE }}
28+
run: openssl enc -aes-256-cbc -pbkdf2 -d -in assets/static/fonts.tar.gz.enc -pass env:FONTS_PASSPHRASE | tar xzf - -C assets/static
2729

2830
- run: uv run lektor build --output-path build
2931

0 commit comments

Comments
 (0)