Skip to content

Commit

Permalink
mobi artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
prekel committed Jan 5, 2022
1 parent 2a36dae commit 405a424
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,27 @@ jobs:
with:
name: book.pdf
path: ./_build/default/static/book.pdf

- name: Convert to EPUB
if: runner.os == 'Linux'
working-directory: ./_build/default/static
run: pandoc --top-level-division=part --filter=../bin/pandoc-rwo/pandoc_rwo.exe --metadata-file=../book/book.yml --listings -o book.epub -t epub -s book.md

- name: Upload EPUB artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: book.epub
path: ./_build/default/static/book.epub

- name: Convert to MOBI
if: runner.os == 'Linux'
working-directory: ./_build/default/static
run: ebook-convert book.epub book.mobi

- name: Upload EPUB artifact
- name: Upload MOBI artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: book.epub
path: ./_build/default/static/book.epub
name: book.mobi
path: ./_build/default/static/book.mobi

0 comments on commit 405a424

Please sign in to comment.