Enable Multi-language Build and Build on All Branches
This PR fixes two important issues:
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
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:
Build.sh Improvements:
Added command-line argument parsing
Added specific handling for Spanish images
Improved image handling for cross-language referencing
Added detection for CI environment to always build all languages in CI
Workflow Changes:
Removed branch restriction for build job
Added conditional for release job to only run on main branch
Added directory listing step to debug build contents
Force building of all languages by passing --all-languages flag
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).
Enable Multi-language Build and Build on All Branches
This PR fixes two important issues:
Spanish resources not appearing in the build assets:
Building on all branches:
Key Changes:
Build.sh Improvements:
Workflow 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).