Skip to content

Commit

Permalink
Update pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jovezhong committed Aug 5, 2024
1 parent 7ca69d5 commit e196289
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Generate PDF
name: Generate PDF (En)

on:
workflow_dispatch:

env:
PRINCE_VER: 15.3

jobs:
pdf:
runs-on: ubuntu-latest
Expand All @@ -11,6 +14,12 @@ jobs:
uses: actions/checkout@v4.1.7
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
- 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
Expand All @@ -22,4 +31,5 @@ jobs:
- name: Share PDF
uses: actions/upload-artifact@v4
with:
name: en.pdf
path: pdf/docs.timeplus.com.pdf

0 comments on commit e196289

Please sign in to comment.