mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Run workflow on docker image
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
parent
d3511495b8
commit
a038184944
1 changed files with 14 additions and 5 deletions
19
.github/workflows/build-pdf.yml
vendored
19
.github/workflows/build-pdf.yml
vendored
|
|
@ -1,25 +1,34 @@
|
|||
name: Build template
|
||||
on: [push, pull_request]
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
registry_package:
|
||||
|
||||
jobs:
|
||||
build-template:
|
||||
name: Build template
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/moderncv/debian-texlive-docker:main
|
||||
|
||||
steps:
|
||||
- name: Install TeX Live
|
||||
run: sudo apt update && sudo apt install texlive-full fonts-font-awesome
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build pdf
|
||||
run: latexmk -pdflua ./template.tex
|
||||
- name: Scan log
|
||||
run: texloganalyser -wahv ./template.log
|
||||
|
||||
- name: Upload pdf
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: template.pdf
|
||||
path: ./template.pdf
|
||||
|
||||
- name: Upload log
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: template.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue