ci: consolidate scripts and make sure to install fonts

This commit is contained in:
Paul Tsouchlos
2024-09-18 22:44:27 -06:00
parent 306adaa461
commit 2e99ceacb6
2 changed files with 12 additions and 24 deletions

View File

@@ -1,23 +0,0 @@
name: Build documentation
on: [push, workflow_dispatch]
jobs:
build_pdf:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
- name: Typst
uses: yusancky/setup-typst@v2
id: setup-typst
with:
version: 'v0.11.0'
- run: typst compile modern-cv-docs.typ
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: modern-cv-docs
path: modern-cv-docs.pdf

View File

@@ -21,6 +21,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install fonts
run: |
sudo apt update
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@v1
with:
@@ -66,3 +71,9 @@ jobs:
- name: Build docs
if: ${{ matrix.doc }}
run: just doc
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: manual
path: docs/manual.pdf