我目前正在使用 visualstudio.com 来编译我的 Clickonce 应用程序,但我想自动将新版本部署到 Github,在那里我有一个单独的分支来推送版本。
我从 https://refactorsaurusrex.com/post/2015/how-to-host-a-clickonce-installer-on-github/ 得到了这个解决方法的想法它就像一个魅力。
有没有办法以某种方式使这个过程自动化?
最佳答案
目前无法直接将您的 Clickonce 应用程序发布到远程 github。
作为解决方法,您可以先发布到 TFS 服务器并复制文件,将它们推送到另一个远程 url (Github)。
There is an option to enable scripts to use the OAuth token created by the build. This also enables the peristence of the credentials for the Git repository to enable scripting of git commands.
你可以试试这个扩展 Git Build Tools 它使用提供的 OAuth token 重写远程 url,以支持访问远程存储库以执行 git push 等操作。
关于c# - 有没有办法将 ClickOnce-Releases 推送到 Github 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45026693/