-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ferllop/master
Add github action to build pdf and epub and publish it as a release
- Loading branch information
Showing
12 changed files
with
5,262 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Calibre | ||
run: | | ||
sudo apt install -y libopengl0 libegl1 | ||
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin | ||
mkdir -p ~/.local/bin | ||
ln -s /opt/calibre/calibre ~/.local/bin/calibre | ||
ln -s /opt/calibre/ebook-convert ~/.local/bin/ebook-convert | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.22.1 | ||
|
||
- name: Setup gitbook | ||
run: | | ||
npm ci | ||
npm run setup | ||
- name: Generate PDF | ||
run: | | ||
npm run generate-pdf | ||
mv book.pdf mostly-adequate-guide-to-functional-programming-spanish-version.pdf | ||
- name: Generate EPUB | ||
run: | | ||
npm run generate-epub | ||
mv book.epub mostly-adequate-guide-to-functional-programming-spanish-version.epub | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: PDF | ||
path: mostly-adequate-guide-to-functional-programming-spanish-version.pdf | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: EPUB | ||
path: mostly-adequate-guide-to-functional-programming-spanish-version.epub | ||
|
||
- run: echo "ID=$(git describe --tags --always)" >> $GITHUB_OUTPUT | ||
id: release-id | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.release-id.outputs.ID }} | ||
files: | | ||
mostly-adequate-guide-to-functional-programming-spanish-version.pdf | ||
mostly-adequate-guide-to-functional-programming-spanish-version.epub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ less | |
Gruntfile.js | ||
npm-debug.log | ||
.DS_Store | ||
*.epub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"gitbook": "3.2.2", | ||
"root": ".", | ||
"title": "Professor Frisby's Mostly Adequate Guide to Functional Programming", | ||
"cover": "images/cover.png", | ||
"plugins": [ | ||
"exercises@git+https://github.com/MostlyAdequate/plugin-exercises.git", | ||
"[email protected]" | ||
], | ||
"structure": { | ||
"summary": "SUMMARY-es.md" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Capítulo 1: ¿Qué Estamos Haciendo? | ||
# Capítulo 01: ¿Qué Estamos Haciendo? | ||
|
||
## Presentaciones | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Capítulo 6: Aplicación de Ejemplo | ||
# Capítulo 06: Aplicación de Ejemplo | ||
|
||
## Programación Declarativa | ||
|
||
|
Oops, something went wrong.