deploy setting for Nuget

Kunal Saini's Avatar

Kunal Saini

27 Feb, 2016 08:35 AM

Hi,
I am trying to publishing Nuget package to Nuget.org when I push a git tag to my master branch.
I keep getting "Skip "NuGet" deployment as environment variable has not matched ("appveyor_repo_tag" is "false", should be "true")" even when I push git tags.

nlog-kafka appveyor link

Project Github link

Also attaching my appveyor.yml file

  1. Support Staff 1 Posted by Feodor Fitsner on 27 Feb, 2016 04:09 PM

    Feodor Fitsner's Avatar

    Hi Kunal,

    Tag build looks like this one: https://ci.appveyor.com/project/KunalSaini/nlog-kafka/build/1.0.31, but the issue with that one is that branch doesn't match. Look at this thread for more details: http://help.appveyor.com/discussions/problems/3960-build-on-tag-wro...

  2. 2 Posted by Kunal Saini on 28 Feb, 2016 10:50 AM

    Kunal Saini's Avatar

    Thanks for the prompt reply,
    I can see in my github webhook settings the base_ref property is posted as null, Can you guide me on how to set it correctly , I am using msysGit to push my commits/tags to Github.

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Feb, 2016 08:46 PM

    Feodor Fitsner's Avatar

    This is an explanation from GitHub:

    The base_ref will be populated with a branch name if the pushed tag directly references the same commit as the branch. For example, this happens when you tag the tip of the master branch with a lightweight tag.

    However, it won't happen if you tag some previous commit (which is not directly referenced by a branch) with a lightweight tag. Also, it will not happen with annotated tags since those tags point to tag objects, and not to commits directly (you'll notice that the "after" attribute for such pushes points to the SHA of the tag object, not the commit).

  4. 4 Posted by Kunal Saini on 29 Feb, 2016 06:39 AM

    Kunal Saini's Avatar

    Thanks,
    I was creating Annotated Tags earlier, hence was not able to trigger the package publishing. I created a Lightweight Tag and the package was published.

    Tanks again for the quick help.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac