fix: make bullet points closer together #7
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
name: PDF Generation | |
on: | |
push: | |
tags: | |
- '*' # Run on all tags | |
branches: | |
- '*' # Run on all branches | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Convert Markdown to PDF | |
# https://github.com/pandoc/pandoc-action-example | |
uses: docker://pandoc/extra | |
with: | |
args: --output ${{ github.repository_owner }}_resume.pdf --template=resume.tex RESUME.md | |
- name: Upload PDF file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Resume PDF | |
path: ${{ github.repository_owner }}_resume.pdf | |
- name: Update latest tag | |
if: github.ref == 'refs/heads/main' | |
run: | | |
git config --global user.email "workflow@github.com" | |
git config --global user.name "GitHub Workflow" | |
timestamp=$(date --iso-8601=seconds) | |
sha=$(git rev-parse --short HEAD) | |
git tag -f latest -m "Latest release (${sha} - ${timestamp})" | |
git push -f origin latest | |
- name: Create Release for Tags | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body_path: CHANGELOG.md | |
files: | | |
${{ github.repository_owner }}_resume.pdf | |
- name: Create latest Release for Main Branch | |
id: create_latest_release | |
uses: softprops/action-gh-release@v1 | |
if: github.ref == 'refs/heads/main' | |
with: | |
tag_name: latest | |
body_path: CHANGELOG.md | |
files: | | |
${{ github.repository_owner }}_resume.pdf |