iksnae / actual-intelligence

A practical, non-technical guide to using AI tools like ChatGPT in everyday life
MIT License
0 stars 0 forks source link

Fix GitHub Pages deployment by separating workflow jobs #39

Closed khaos-codi closed 3 months ago

khaos-codi commented 3 months ago

Fix for GitHub Pages Deployment

This PR separates the workflow into two distinct jobs:

  1. Build Job: Uses the Docker container to build the book files

    • Runs entirely within the iksnae/book-builder Docker container
    • Focuses solely on building book files (PDF, EPUB, MOBI, HTML)
    • Uploads artifacts for the next job
  2. Release & Deploy Job: Runs on the GitHub runner directly

    • Downloads artifacts from the build job
    • Creates GitHub release with the book files
    • Handles GitHub Pages deployment without needing rsync in the Docker container

Why This Approach:

This approach follows the principle of separation of concerns:

How to Test:

This approach keeps your Docker container focused on its primary task (building books) and leverages GitHub's runners for deployment operations.