Best way to combine Git with .NET when versioning

前端 未结 5 521
轻奢々
轻奢々 2021-02-05 05:46

I\'m currently working on a project (just me), and I already know how to handle versioning on it. I\'m using the classic ..

5条回答
  •  梦毁少年i
    2021-02-05 06:40

    I have successfully used the following steps to accomplish something similar to:

    • Push new commits to a shared git repo
    • TeamCity server checks out code, runs tests and builds the project
    • If successful, TeamCity also moves/deletes/packages files for a deployment package
    • Then it FTPs the zip to a deployment staging area, where it can be manually deployed (this could be fully automated, but our setup was weird)

    You could use a post-commit hook to tag your branch and push to your TeamCity server.

提交回复
热议问题