-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 1.03 KB
/
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
name: Generate PDF (En)
on:
workflow_dispatch:
env:
PRINCE_VER: 15.3
jobs:
pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node.js environment
uses: actions/setup-node@v4.2.0
- name: Install Prince
run: |
curl https://www.princexml.com/download/prince-${{ env.PRINCE_VER }}-linux-generic-x86_64.tar.gz -O
tar zxf prince-${{ env.PRINCE_VER }}-linux-generic-x86_64.tar.gz
cd prince-${{ env.PRINCE_VER }}-linux-generic-x86_64
yes "" | sudo ./install.sh
- name: Regeneate page list
run: yarn run en-pdf-list
- name: Update page list
run: |
grep -v -F -f "pdf/docs.timeplus.com.excludes.txt" "pdf/docs.timeplus.com.txt" > a
mv a "pdf/docs.timeplus.com.txt"
- name: Regeneate PDF
run: yarn run en-pdf-gen
- name: Share PDF
uses: actions/upload-artifact@v4
with:
name: en.pdf
path: pdf/docs.timeplus.com.pdf