Skip to content

feat: Small updates #24

feat: Small updates

feat: Small updates #24

Workflow file for this run

# Markdown to PDF build copied from
# https://github.com/sladkoff/resume
on:
push:
branches:
- main
name: Build PDF
jobs:
build:
name: Build and Release PDF
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sanitize
# Some unicode characters don't cause problems for the PDF.
# Strip cutesy icons.
# Convert curly quotes to straight quotes.
# Convert em-dashes to hyphens.
# Remove first line with badges.
run: |
sed -i '1d' README.md
< README.md tr --delete 'πŸͺͺβœ…πŸŒŸπŸ§‘β€πŸ’»πŸ‘¨β€πŸŽ“πŸ…' > README2.md
< README2.md tr "’" "'" > README3.md
< README3.md tr 'β€œβ€' '""' > README4.md
< README4.md tr 'β€”' '-' > README5.md
mv README5.md README.md
- name: Build PDF from Markdown
uses: BaileyJM02/[email protected]
with:
input_path: README.md
output_dir: out
- name: Rename PDF
run: cp out/README.pdf ./david_bliss_cv.pdf
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: main
- name: Release
if: steps.semantic.outputs.new_release_published == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.semantic.outputs.new_release_git_tag }}
files: david_bliss_cv.pdf