@@ -2,6 +2,8 @@ name: Build Resume PDF
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "resume.tex"
|
- "resume.tex"
|
||||||
- ".gitea/workflows/build.yml"
|
- ".gitea/workflows/build.yml"
|
||||||
@@ -14,14 +16,27 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Compile LaTeX document
|
- name: Install TeX Live packages
|
||||||
uses: xu-cheng/texlive-action@v3
|
run: |
|
||||||
with:
|
sudo apt-get update
|
||||||
run: |
|
sudo apt-get install -y --no-install-recommends \
|
||||||
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode resume.tex
|
texlive-latex-base \
|
||||||
|
texlive-latex-recommended \
|
||||||
|
texlive-latex-extra \
|
||||||
|
texlive-fonts-recommended
|
||||||
|
|
||||||
- name: Upload PDF artifact
|
- name: Compile LaTeX document
|
||||||
uses: actions/upload-artifact@v3
|
run: pdflatex -interaction=nonstopmode -halt-on-error resume.tex
|
||||||
|
|
||||||
|
- name: Publish to "latest" release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: "--experimental-fetch"
|
||||||
with:
|
with:
|
||||||
name: resume
|
tag_name: latest
|
||||||
path: resume.pdf
|
target_commitish: ${{ github.sha }}
|
||||||
|
name: Latest Resume
|
||||||
|
body: Automatically built from commit ${{ github.sha }}.
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
files: |-
|
||||||
|
resume.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user