this does work, but it's easier to read if you swap the arguments:
cat  > ${BUILD_TAG}.htm << EOF

Also I prefer html to htm since it's used more widely and we no longer have to support DOS, but that's just me.