github - Azure Pipelines 拒绝创建 GitHub 版本

标签 github azure-devops azure-pipelines

我有一个 Azure 发布管道来构建我的应用程序并创建 GitHub 版本,但该步骤被跳过:

2020-03-08T16:32:07.1704675Z ##[warning]Release will not be created as the tags for the target commit do not match with the given tag pattern.

但我从未指定任何“标记模式”,而且我看不到任何可以更改它的地方。该消息在谈论什么?如何创建二进制文件并将其上传到 GitHub?

最佳答案

[warning]Release will not be created as the tags for the target commit do not match with the given tag pattern

此警告是由 GitHub 发布任务的 Tag Pattern 属性引起的。如果任务中的“标记模式”属性为空,则可能会导致警告,这是因为“标记模式”属性是必需

官方document中有说明:

Tag (Required) Specify the tag for which you want to create, edit, or discard a release. You can also use variables here. E.g. $(tagName).

Tag source (Required) Configure the tag to be used for release creation. The 'Git tag' option automatically takes the tag which is associated with this commit. Use the 'User specified tag' option in case you want to manually provide a tag.

enter image description here

要解决这个问题,我们需要为标签模式提供相应的标签或表达式。

关于github - Azure Pipelines 拒绝创建 GitHub 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61165982/

相关文章:

git - 阻止用户推送到公共(public)存储库 GitHub

git - 如何向 Visual Studio Online 发出 pull 请求

azure - 如何在 Azure DevOps 管道中管理构建工件?

github - 如何将项目从 Visual Studio Online 导入到 GitHub?

azure-devops - Azure DevOps 管道可以同时具有模板化和非模板化作业吗?

javascript - 对示例实时提交/推送事件的 GitHub API 请求

git - Gist:如何将图像上传到 Gist?

azure - 在github中维护K8S资源的最佳实践

c# - Azure Devops 上的 Net Core 3.0 SDK Preview 9 的 Visual Studio 构建失败

azure-devops - 是否可以在 VSTS 上使用 AsciiDoc?