From a1d7aae361f70c9e637fecb1126dc2e536f5c2ce Mon Sep 17 00:00:00 2001 From: hhw <2589622350@qq.com> Date: Mon, 30 Dec 2024 23:22:41 +0800 Subject: [PATCH] add sudo apt-get --- .github/workflows/gitbook-action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitbook-action.yml b/.github/workflows/gitbook-action.yml index 231e8c6..41e24b5 100644 --- a/.github/workflows/gitbook-action.yml +++ b/.github/workflows/gitbook-action.yml @@ -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 @@ -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