Skip to content

Commit

Permalink
Fix #345 - Add build info file
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Jun 27, 2024
1 parent 30692b2 commit 34ef52b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install pandoc texlive-xetex
sudo apt-get --assume-yes install pandoc texlive-xetex texinfo
- name: Build ebooks
run: make
run: make pdf epub info
- name: Pub
uses: actions/upload-artifact@v4
with:
name: r2book
path: r2book.*
path: |
r2book.pdf
r2book.epub
r2book.info.gz
# Release creation
check_release:
Expand Down Expand Up @@ -70,4 +73,7 @@ jobs:
draft: false
prerelease: false
generate_release_notes: true
files: r2book.*
files: |
r2book.pdf
r2book.epub
r2book.info.gz
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ _book/*
*.log
r2book.pdf
r2book.epub
r2book.texi
r2book.info*
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: pdf epub

.PHONY: epub pdf pdf_old gmi
.PHONY: epub pdf pdf_old gmi texi info

pdf_old: node_modules
npm run build
Expand Down Expand Up @@ -31,6 +31,15 @@ pdf:
epub:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) $(PANDOC_EPUB_OPTIONS) -o r2book.epub

texi:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) -o r2book.texi
sed -i -E 's,@uref\{[0-9a-z/_-]+gemini://,@uref\{gemini://,gI' r2book.texi # fix gemini link

info: texi
rm -f r2book.info r2book.info.gz
makeinfo --force --no-split r2book.texi
gzip -9n r2book.info

MD2GMI=md2gmi/md2gmi

md2gmi:
Expand Down

0 comments on commit 34ef52b

Please sign in to comment.