feat: Add new Java certificate from Udemy #31
This file contains 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
# 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. | |
# FIXME figure out a single expression for removing all emoji. | |
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 |