diff --git a/.github/workflows/github_action_build.yml b/.github/workflows/github_action_build.yml index 3e2fc97..fd96187 100644 --- a/.github/workflows/github_action_build.yml +++ b/.github/workflows/github_action_build.yml @@ -25,21 +25,23 @@ jobs: run: docker run -v $(pwd):/latex_content --name latex-container ghcr.io/${{ github.repository_owner }}/latex-build:latest /bin/sh -c "make pdf" - name: Copy PDF from Docker Container - run: docker cp latex-container:/latex_content/rendered.pdf output.pdf + run: | + docker cp latex-container:/latex_content/rendered.pdf esteban_martinena_cv.pdf + docker cp latex-container:/latex_content/cover.png esteban_martinena_cv.png - name: Upload PDF as Artifact uses: actions/upload-artifact@v4 with: - name: compiled-pdf-${{ github.ref_slug }} - path: output.pdf + name: generated-pdf-${{ github.ref_slug }} + path: esteban_martinena_cv.* - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 if: ${{ contains(github.ref, 'tags') }} with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: output.pdf - asset_name: esteban_martinena_cv.pdf + file: "esteban_martinena_cv*" + file_glob: true tag: ${{ github.ref }} overwrite: true body: "Latest version of my CV." diff --git a/.gitignore b/.gitignore index db2d655..dec9494 100644 --- a/.gitignore +++ b/.gitignore @@ -280,3 +280,5 @@ build/ *.pdf *.eps + +*.png diff --git a/Makefile b/Makefile index 78eb2bb..894b3ad 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ FILE0 = main TEX_TEMPLATE = $(FILE0).template.tex TEX = $(FILE0).raw.tex PDF = $(FILE0).pdf +COVER = cover.png RAW_PDF = $(FILE0).raw.pdf all: pdf @@ -23,8 +24,10 @@ pdf: pandoc data.md --pdf-engine xelatex --template $(TEX_TEMPLATE) -o $(TEX) ; \ xelatex -shell-escape -output-driver="xdvipdfmx -z 0" $(TEX) ; \ echo "Compresing PDF..."; \ - gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=$(PDF) $(RAW_PDF) + gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=$(PDF) $(RAW_PDF); \ + gs -sDEVICE=png16m -sOutputFile=cover.png -r144 $(RAW_PDF); cp build/pdf/$(PDF) ./rendered.pdf + cp build/pdf/$(COVER) ./cover.png clean-pdf: rm -rf build/pdf/ diff --git a/README.md b/README.md index 65957ac..d5ee59d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Hi! My name is Esteban Martinena, a Software Engineer from Spain. This is my resume, built with LaTeX, Pandoc, Docker... +
+
+