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

Add build-only job for non-main branches #30

Closed iksnae closed 3 months ago

iksnae commented 3 months ago

Enhanced GitHub Workflow

This PR adds a build-only job to the GitHub workflow that runs on all branches except main. This will help catch build issues earlier in the development process without creating releases.

Changes Made:

  1. Added a build-only job that runs whenever you push changes to any branch except main

  2. This job:

    • Builds the book using the exact same process
    • Runs all the same validation checks
    • Uploads the build artifacts for inspection (with a 3-day retention period)
    • Does NOT create releases or deploy to GitHub Pages
  3. The original build job continues to run only on the main branch

Benefits:

This ensures that all branches get tested with a full build, but only successful merges to main create official releases and documentation updates.