Fix build target error and publish scripts to artifacts also.