Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmcallister committed Jan 22, 2024
1 parent c3325f2 commit d6de2d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Compile PDFs
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt-get install -y imagemagick texlive-full
- name: Compile
run: make resume.pdf
- name: Upload Resume
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
resume.pdf
resume-0.png
resume-1.png
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
RESUME_SRCS = $(shell find resume -name '*.tex')
RESUME_ENTRY = $(shell find -name 'resume.tex')

all: resume.pdf resume.png

resume.pdf:
xelatex --output-directory=resume resume/resume.tex
resume.pdf: $(RESUME_SRCS)
xelatex $(RESUME_ENTRY)

resume.png: resume.pdf
convert -density 300 resume/resume.pdf -quality 90 resume/resume.png
convert -density 300 $< -quality 90 $@

clean:
rm -f resume/resume*.png resume/resume.pdf
rm -f missfont.log resume.aux resume.log resume.out
rm -f resume*.png resume.pdf
rm -f missfont.log resume.aux resume.log resume.out projects.log

0 comments on commit d6de2d7

Please sign in to comment.