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

Restructure build workflow into separate phases #43

Closed khaos-codi closed 3 months ago

khaos-codi commented 3 months ago

Restructure Workflow into Distinct Phases

This PR restructures the book build workflow into distinct, separate phases for better organization, clarity, and future maintainability.

New Structure:

  1. Setup Phase:

    • Sets up version numbers and dates
    • Checks for cover image
    • Creates necessary directories
    • Passes outputs to subsequent jobs
  2. Build Phase:

    • Prepares the build environment
    • Runs the build script with all-languages flag
    • Lists directory contents for debugging
    • Uploads build artifacts
  3. Release Phase (main branch only):

    • Downloads artifacts
    • Creates GitHub release with all book formats
    • Uses metadata from the setup phase
  4. Deploy Phase (main branch only):

    • Deploys to GitHub Pages
    • Depends on build and release phases

Benefits:

The functionality remains the same, but the workflow is now more modular and easier to maintain.