Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: GitHub Book Publisher
run-name: ${{ github.actor }} is publishing using GitHub Actions 🚀
on:
Comment on lines +1 to +3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit, making it YAML compliant 😄

Suggested change
name: GitHub Book Publisher
run-name: ${{ github.actor }} is publishing using GitHub Actions 🚀
on:
---
name: GitHub Book Publisher
run-name: ${{ github.actor }} is publishing using GitHub Actions 🚀
"on":

push:
branches:
- 'master'
paths:
- 'wisdom.md'
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: sudo apt-get install pandoc
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to build your book."
- name: Run pandoc to convert markdown to ePub
run: pandoc wisdom.md -o ebooks/wisdom.epub
- uses: EndBug/add-and-commit@v9
with:
message: 'Adding the new wisdom book'
committer_name: GitHub Actions
committer_email: actions@github.com
add: '.'
- run: echo "🍏 This job's status is ${{ job.status }}."
Binary file added ebooks/wisdom.epub
Binary file not shown.
6 changes: 3 additions & 3 deletions wisdom.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Author: Merlin Mann

# Merlin's Wisdom Project

![Your Author](/i/cover.jpg)
![Your Author](i/cover.jpg)


Or: “*Everybody likes being given a glass of water*.”
Expand Down Expand Up @@ -56,7 +56,7 @@ TODO needs better citation

----

![Something Like Advice](/i/toot-advice.jpg "'Good advice helps you find the solution to your problem. Great advice helps you find you were solving the wrong problem.'")
![Something Like Advice](i/toot-advice.jpg "'Good advice helps you find the solution to your problem. Great advice helps you find you were solving the wrong problem.'")

----

Expand Down Expand Up @@ -557,4 +557,4 @@ Brief introductory remarks regarding the Project:

[**Merlin Mann**](http://hotdogsladies.omg.lol "Merlin's current place for places") is a podcaster and retired project manager who lives in San Francisco.

![Your Author (detail)](/i/MANN-angry-2500.jpg "Your Author")
![Your Author (detail)](i/MANN-angry-2500.jpg "Your Author")