Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhuan2021 authored Jan 12, 2025
1 parent 02ede69 commit 0881f38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ jobs:
with:
node-version: '20'

- name: Install dependencies
run: npm install -g markdown-pdf puppeteer
- name: Install pandoc and LaTeX
run: |
sudo apt-get update
sudo apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
- name: Merge Markdown files
run: |
find doc -type f -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
find doc -type f -name "*.md" ! -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
- name: Convert README.md to README.pdf
run: markdown-pdf -p A4 -m 2cm README.md -o README.pdf
run: pandoc README.md -o README.pdf

- name: Upload PDF
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0881f38

Please sign in to comment.