有没有办法将 ClickOnce-Releases 推送到 Github 分支?

Is there a way to push ClickOnce-Releases to Github branch?

我目前正在使用 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 令牌重写远程 url 以支持访问远程存储库以执行操作喜欢 git 推送。

另一个示例供您参考:Synchronizing TFS 2015 and VSTS with GitHub