diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml new file mode 100644 index 0000000..a4db788 --- /dev/null +++ b/.github/workflows/auto-publish.yml @@ -0,0 +1,28 @@ +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 }}." diff --git a/ebooks/wisdom.epub b/ebooks/wisdom.epub new file mode 100644 index 0000000..d1d36fa Binary files /dev/null and b/ebooks/wisdom.epub differ diff --git a/wisdom.md b/wisdom.md index 9fc83d2..dfb519f 100644 --- a/wisdom.md +++ b/wisdom.md @@ -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*.” @@ -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.'") ---- @@ -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")