-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.07 KB
/
french-pdf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: French PDF generation
on:
workflow_dispatch:
push:
paths:
- french/**
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions: write-all
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install needed packages
run: |
sudo apt-get update
sudo apt-get install pandoc texlive-fonts-recommended texlive-fonts-extra texlive-lang-french texlive-lang-chinese texlive-xetex
- name: Checkout code
uses: actions/checkout@v4
- name: Install needed fonts
run: |
mkdir $HOME/.fonts
cp ./french/forge/fonts/* $HOME/.fonts/
fc-cache -fv
- name: Build the PDF
run: python forge/pdf.py
working-directory: ./french
- name: Upload to release
uses: xresloader/upload-to-github-release@v1.6.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ./french/ethos-french-manual.pdf
update_latest_release: true
overwrite: true