I'm working for a simple project and wanted to deploy it to the webserver in my church. I installed TeamCity and set it up to pull the source code from github and build it.
The challenge was, unexpectedly, publish. Initially, I used MS Web Deploy. For some reason I couldn't figure out, it didn't work. Also, I had to install an extra service. So I went for a simple msbuild file system deploy.
msbuild .\WebDrive.csproj /t:Package
On TeamCity, I added an additional build step and configure it like these
Much simpler that web deployment.