File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Resume
2+ on :
3+ push :
4+ paths :
5+ - ' resume/**'
6+
7+ jobs :
8+ build-resume :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check out code
12+ uses : actions/checkout@v2
13+
14+ - name : Install LaTeX
15+ run : |
16+ sudo apt-get update
17+ sudo apt-get install -y \
18+ texlive-latex-base \
19+ texlive-latex-extra \
20+ texlive-fonts-extra \
21+ texlive-fonts-recommended
22+
23+ - name : Build Resume
24+ run : |
25+ cd resume
26+ pdflatex resume.tex
27+
28+ - name : Upload PDF
29+ uses : actions/upload-artifact@v3
30+ with :
31+ name : resume
32+ path : resume/resume.pdf
33+
34+ - name : Commit PDF
35+ run : |
36+ git config --local user.email "${{ secrets.GIT_EMAIL }}"
37+ git config --local user.name "${{ secrets.GIT_USERNAME }}"
38+ git add -A
39+ git diff-index --quiet HEAD || git commit -m "Updated README.md"
40+ - name : Pull changes
41+ run : git pull -r
42+ - name : Push changes
43+ uses : ad-m/github-push-action@master
44+ with :
45+ github_token : ${{ secrets.GITHUB_TOKEN }}
46+ branch : ${{ github.ref }}
47+
You can’t perform that action at this time.
0 commit comments