-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 920 Bytes
/
compile.yml
File metadata and controls
25 lines (25 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[automated]') && !contains(github.event.head_commit.message, '[meta]')"
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: source/main.tex
- name: Commit changes
run:
git config --local user.email "action@github.com";
git config --local user.name "GitHub Action";
git pull https://github.com/basicskill/Resume;
mv main.pdf Basic_Mladen_Resume.pdf;
git add Basic_Mladen_Resume.pdf;
git commit -m "[automated] Compiled pdf";
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}