Fixed deploy script to only deploy published content