Skip to content

Commit

Permalink
add sudo apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
houhuawei23 committed Dec 30, 2024
1 parent d34eb47 commit a1d7aae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gitbook-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Calibre (for ebook-convert)
run: |
sudo apt-get update
sudo apt-get install -y calibre
- name: Install GitBook CLI
run: npm install -g gitbook-cli

Expand All @@ -31,9 +36,7 @@ jobs:
run: gitbook build . ./_book

- name: Generate GitBook pdf
run: |
apt install calibre
gitbook pdf . ./_book/Notes.pdf
run: gitbook pdf . ./_book/Notes.pdf

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit a1d7aae

Please sign in to comment.