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

Enable multi-language build and build on all branches #42

Closed khaos-codi closed 3 months ago

khaos-codi commented 3 months ago

Enable Multi-language Build and Build on All Branches

This PR fixes two important issues:

  1. Spanish resources not appearing in the build assets:

    • Updated build.sh to properly process command line arguments (--all-languages, --lang=xx)
    • Modified workflow to call build script with the --all-languages flag
    • Added Spanish-specific image directories and resource paths
    • Added copy operations to ensure Spanish assets are correctly built and copied to the right locations
  2. Building on all branches:

    • Removed branch restriction for the build job (now builds on any branch)
    • Only the release job is restricted to the main branch for publishing
    • Added debug output to list build directory contents before release

Key Changes:

This PR ensures that both English and Spanish books will be built and published in the release assets, and that builds will run on all branches (with releases only on main).