marceloavf / github-tools-vsts

📦:octocat:🚀 Create and modify GitHub Releases in Azure DevOps Build and Release Management
https://marketplace.visualstudio.com/items?itemName=marcelo-formentao.github-tools
MIT License
24 stars 15 forks source link

Link GitHub Release to Tag #38

Closed jeanfrancoislarente closed 5 years ago

jeanfrancoislarente commented 5 years ago

Question

Fantastic extension by the way! When I publish my release, the release seems to get created 'unlinked' from the tag. Instead it creates the release with 'releases/tag/untagged-13b8ac56b9b557bbbade' as the name.

I'd like to know if it's possible (and if so, how) to create a release and have it linked to a tag at the same time.

Description My task yaml: (major, minor, patch resolves to 9.1.0.1 for example)


- task: marcelo-formentao.github-tools.github-release-publish-task.GitHubReleasePublish@1
  displayName: 'Create GitHub Release'
  inputs:
    githubEndpoint: 'GitHub connection 1'

    githubRepository: myrepo

    githubTag: '$(major).$(minor).$(patch)'

    githubReleaseTitle: '$(major).$(minor).$(patch)'

    githubReleasePrerelease: true

    githubReleaseAsset: |
     $(Build.ArtifactStagingDirectory)/9.1.0/XPSingle/assets/WDP/*

    githubEditRelease: true

    isPreRelease: true```

The result is a tag (good) and a release (good) but they're not linked together in GitHub (not-so-good) :)

Thanks in advance @marceloavf !
marceloavf commented 5 years ago

Hey @jeanfrancoislarente,

Can you confirm if this release is not a Draft Release type? Because all draft release aren't linked to the tag until it becomes PreRelease or Release.

You can see the message when editing your release:

image

Thank you for the feedback.

marceloavf commented 5 years ago

Closed due to no response.