🤡 Add "make bake" command (#97)

I feel like since this is bread related, release should be renamed to
"bake". So `make bake` will bake you the final book versions.
This commit is contained in:
Hendrik Kleinwaechter
2023-05-21 20:19:56 +02:00
committed by GitHub
parent c2d5e88377
commit 6c8839da87
5 changed files with 16 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ jobs:
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Build the book
- name: Bake the book
uses: xu-cheng/texlive-action/full@v1
with:
run: |
@@ -18,8 +18,8 @@ jobs:
tar xzf kindlegen_linux_2.6_i386_v2_9.tar.gz
mv kindlegen /usr/bin
cd book
make release
- name: Release book on S3
make bake
- name: Release baked book to S3
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}

View File

@@ -13,7 +13,7 @@ jobs:
apk add make
cd book
make build_pdf
- name: Test building release versions
- name: Test baking the release versions
uses: xu-cheng/texlive-action/full@v1
with:
run: |
@@ -22,4 +22,4 @@ jobs:
tar xzf kindlegen_linux_2.6_i386_v2_9.tar.gz
mv kindlegen /usr/bin
cd book
make release
make bake

View File

@@ -24,7 +24,7 @@ as possible are provided.
![A whole wheat sourdough bread](./book/images/whole-wheat-crumb.jpg)
## Building the book (Docker)
## 🍞 Baking the book (Docker)
```console
make
@@ -32,15 +32,15 @@ make
Then you can check out the file `book/book.pdf`
If you want to build the eBook versions (.epub, .mobi, .azw3) run:
If you want to 🍞 bake all the versions including ebook formats (.pdf, .epub, .mobi, .azw3) run:
```console
make release
make bake
```
You can check the files in the folder `book/release/`
## Building the book locally (LaTeX)
## 🍞 Baking the book locally (LaTeX)
Make sure you have `biber` installed. Refer to your system's installation
instructions for LaTeX.
@@ -50,11 +50,11 @@ cd book/
make
```
If you want to build the eBook versions (.epub, .mobi, .azw3) run:
If you want to 🍞 bake all the versions including ebook formats (.pdf, .epub, .mobi, .azw3) run:
```console
cd book/
make release
make bake
```
You can check the files in the folder `book/release/`

View File

@@ -78,8 +78,8 @@ release_default: clean build_pdf make_release_dir build_ebook
cp book-epub/book.epub release/TheBreadCode-The-Sourdough-Framework.epub
cp book-azw3/book.azw3 release/TheBreadCode-The-Sourdough-Framework.azw3
.PHONY: release_default
release: release_default release_sans_serif
.PHONY: bake
bake: release_default release_sans_serif
.PHONY: make_release_dir
make_release_dir:

View File

@@ -2,9 +2,9 @@
build_book: build_docker_image
docker run -it -v .:/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf"
.PHONY: release
release: build_docker_image
docker run -it -v .:/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make release"
.PHONY: bake
bake: build_docker_image
docker run -it -v .:/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make bake"
.PHONY: build_docker_image
build_docker_image: