The UI provides support for pre and post build events (see the "Build Events" project property page), however some of you have been asking if it is possible to have steps invoked before or after the deployment step. This will show you how to do this.
NOTE: Be aware that when the Deploy target fails the PostDeploy target will not get executed.
I hope this is useful, hereby a link to the sample project (PrePostDeploy.zip)
-GertD