Skip to content

Update Resume.tex

Update Resume.tex #55

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get fonts
run: |
sudo apt-get install fonts-lato
wget http://mirrors.ctan.org/fonts/fontawesome/opentype/FontAwesome.otf
mkdir -p ~/.local/share/fonts && mv FontAwesome.otf ~/.local/share/fonts/
fc-cache -rv
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: BW PDF
uses: xu-cheng/latex-action@v2
with:
root_file: Resume.tex
latexmk_use_lualatex: true
post_compile: mv Resume.pdf ResumeBLACK.pdf
- name: Color PDF
uses: xu-cheng/latex-action@v2
with:
root_file: Resume.tex
args: '-pretex=\def\iscolor{1} -usepretex'
latexmk_use_lualatex: true
post_compile: mv Resume.pdf ResumeCOLOR.pdf
- name: update repo
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add ResumeCOLOR.pdf ResumeBLACK.pdf
git commit -m "github actions upload"
git push