Skip to content

fix: make bullet points closer together #7

fix: make bullet points closer together

fix: make bullet points closer together #7

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