Skip to content

Commit

Permalink
add Pandoc workflow (#91)
Browse files Browse the repository at this point in the history
* add Pandoc workflow

* Update pandoc.yml

Co-authored-by: Bobby Iliev <bobby@bobbyiliev.com>
  • Loading branch information
mph7 and bobbyiliev committed Oct 11, 2022
1 parent 9323bb0 commit 453db46
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/pandoc.yml
@@ -0,0 +1,25 @@
name: Pandoc eBook Generation
on:
workflow_run:
workflows: ["Pandoc eBook Generation"]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: "0"
- name: Build Pandoc Export Files
uses: mph7/pandoc-build-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PANDOC_PATH: "./ebook/en/content/"
YML_PATH: "./ebook/en/epub.yml"
EXPORT_PATH: "./ebook/en/export/"
EXPORTED_FILE: "introduction-to-bash-scripting.epub"
PANDOC_BRANCH: "main"
EMAIL: "bobby@bobbyiliev.com"
COMMIT_MESSAGE: "Updated Pandoc Exported Files"
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -24,6 +24,8 @@ To download a copy of the ebook use one of the following links:

* [Light mode](https://github.com/bobbyiliev/introduction-to-bash-scripting/raw/main/ebook/en/export/introduction-to-bash-scripting-light.pdf)

* [ePub](https://github.com/bobbyiliev/introduction-to-bash-scripting/raw/main/ebook/en/export/introduction-to-bash-scripting.epub)

## 📘 Chapters

The first 13 chapters would be purely focused on getting some solid Bash scripting foundations then the rest of the chapters would give you some real life examples and scripts.
Expand Down
2 changes: 1 addition & 1 deletion ebook/en/epub.yml
Expand Up @@ -3,7 +3,7 @@
# pandoc content/*.md epub.yml -o export/introduction-to-bash-scripting.epub
title: Introduction to Bash Scripting
author: Bobby Iliev
cover-image: assets/cover.jpg
cover-image: ./ebook/en/assets/cover.jpg
rights: MIT License
lang: en-US
tags: [bash, Unix, Linux]
Expand Down

0 comments on commit 453db46

Please sign in to comment.