Add a script to build and perform auto actions
Fix build script