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