Skip to content

updates pdf2png.bash using ci pdf; renaming files and updating main R… #54

updates pdf2png.bash using ci pdf; renaming files and updating main R…

updates pdf2png.bash using ci pdf; renaming files and updating main R… #54

Workflow file for this run

name: CICV2P
on:
push:
branches: ['**']
jobs:
build:
if: "contains(github.event.head_commit.message, 'CICV2P')"
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile CV
uses: xu-cheng/latex-action@v2
with:
root_file: cv-two-pages.tex
working_directory: tex
- name: Check pdf files
run: |
file tex/cv-two-pages.pdf | grep -q ' PDF '
- name: Upload cv.pdf
run: |
# configure git
git config --global user.name "mxochicale"
git config --global user.email "perez.xochicale@gmail.com"
# setup ssh
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
git config --global core.sshCommand "ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
git clone --depth=1 --branch generated-pdfs git@github.com:mxochicale/cv.git "$GITHUB_WORKSPACE/deploy"
cp -f tex/cv-two-pages.pdf "$GITHUB_WORKSPACE/deploy/cv-two-pages.pdf"
cd "$GITHUB_WORKSPACE/deploy"
git add cv-two-pages.pdf
git commit -m github.event.head_commit.message
git push
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}