Skip to content

Commit

Permalink
fix: Sanitize dashes and quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Mar 10, 2024
1 parent 53f87c3 commit 7c3df4c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ jobs:
uses: actions/checkout@v3
- name: Sanitize
# Some unicode characters don't cause problems for the PDF.
# Strip cutesy icons.
# Convert em-dashes to hyphens.
# Convert curly quotes to straight quotes.
run: |
< README.md tr --delete 'πŸͺͺβœ…πŸŒŸπŸ§‘β€πŸ’»πŸ‘¨β€πŸŽ“πŸ…' > README2.md
< README.md tr --delete 'πŸͺͺβœ…πŸŒŸπŸ§‘β€πŸ’»πŸ‘¨β€πŸŽ“πŸ…' > README2.md
< README2.md tr 'β€”β€™β€œβ€' '-\'""' > README3.md
mv README3.md README.md
- name: Build PDF from Markdown
uses: BaileyJM02/[email protected]
with:
input_path: README2.md
input_path: README.md
output_dir: out
- name: Rename PDF
run: cp out/README2.pdf ./david_bliss_cv.pdf
run: cp out/README.pdf ./david_bliss_cv.pdf
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
Expand Down

0 comments on commit 7c3df4c

Please sign in to comment.