我有一个 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.
要解决这个问题,我们需要为标签模式提供相应的标签或表达式。
关于github - Azure Pipelines 拒绝创建 GitHub 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61165982/