tag:help.appveyor.com,2012-11-13:/discussions/problems/4402-artifact-not-published-although-it-is-created-dnx-libraryAppVeyor: Discussion 2018-10-19T08:17:48Ztag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T02:11:18Z2016-03-30T02:11:18ZArtifact not published although it is created - DNX library<div><p>Hi Justin,</p>
<p>Where is a command listing nuget packages here: <a href="https://ci.appveyor.com/project/justinyoo/entity-context-library/build/2.0.0-alpha-42#L5088">
https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...</a>
Have you used environment variables there?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T03:17:45Z2016-03-30T03:18:39ZArtifact not published although it is created - DNX library<div><p>Oh, I deleted the branch. Sorry for that.</p>
<p>Here's the command to create package:</p>
<ul>
<li><a href="https://github.com/aliencube/Entity-Context-Library/blob/dev/publish-package.ps1#L24">
https://github.com/aliencube/Entity-Context-Library/blob/dev/publis...</a></li>
</ul></div>justin.yoojhtag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T03:24:35Z2016-03-30T03:24:35ZArtifact not published although it is created - DNX library<div><p>I mean the line where you list nuget packages. Is it this one:
<a href="https://github.com/aliencube/Entity-Context-Library/blob/dev/publish-package.ps1#L26">
https://github.com/aliencube/Entity-Context-Library/blob/dev/publis...</a>
?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T04:10:41Z2016-03-30T04:11:17ZArtifact not published although it is created - DNX library<div><p>Yes, that's the one. It ensures me if the package has been
correctly generated or not.</p></div>justin.yoojhtag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T04:20:53Z2016-03-30T04:20:53ZArtifact not published although it is created - DNX library<div><p>OK, try adding something like:</p>
<pre>
<code>dir ".\artifacts\bin\$env:project_name\$env:configuration"</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T04:21:48Z2016-03-30T04:21:48ZArtifact not published although it is created - DNX library<div><p>Alternatively, try pushing those artifacts with script: <a href="http://www.appveyor.com/docs/packaging-artifacts#pushing-artifacts-from-scripts">
http://www.appveyor.com/docs/packaging-artifacts#pushing-artifacts-...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T05:39:09Z2016-03-30T05:39:09ZArtifact not published although it is created - DNX library<div><p>I've tried the first approach and got an error like:</p>
<p><a href="https://ci.appveyor.com/project/justinyoo/entity-context-library/build/2.0.0-alpha-44#L5040">
https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...</a></p>
<p>Seems that the artifact disappeared. Now, I'm running the second
approach. Will let you know the result.</p></div>justin.yoojhtag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T06:28:43Z2016-03-30T06:28:43ZArtifact not published although it is created - DNX library<div><p>The second approach didn't succeed in publishing artifact to
GitHub, either.</p>
<p><a href="https://ci.appveyor.com/project/justinyoo/entity-context-library/build/2.0.0-alpha-45#L954">
https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...</a></p>
<p>Seems that the artifact disappeared, too.</p></div>justin.yoojhtag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T06:40:16Z2016-03-30T06:40:16ZArtifact not published although it is created - DNX library<div><p>I'm looking at appveyor.yml for that build's commit: <a href="https://github.com/aliencube/Entity-Context-Library/blob/f3cec670e7733b8ecc1e542b738e13773275660e/appveyor.yml">
https://github.com/aliencube/Entity-Context-Library/blob/f3cec670e7...</a>
- can you help me to find a place where
<code>publish-package.ps1</code> is called?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T08:54:38Z2016-03-30T08:54:38ZArtifact not published although it is created - DNX library<div><p>I haven't used <code>appveyor.yml</code> for this. But I just
updated it for you.</p>
<p><a href="https://github.com/aliencube/Entity-Context-Library/blob/dev/appveyor.yml#L55">
https://github.com/aliencube/Entity-Context-Library/blob/dev/appvey...</a></p>
<p>When you look at this line, it calls the
<code>publish-package.ps1</code>. This is called after
<code>run-tests.ps1</code> in the <code>test_script</code>
section.</p>
<p>Interestingly, those two last builds have generated artifacts
but didn't publish them:</p>
<ul>
<li><a href="https://ci.appveyor.com/project/justinyoo/entity-context-library/build/2.0.0-alpha-45/artifacts">
https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...</a></li>
<li><a href="https://ci.appveyor.com/project/justinyoo/entity-context-library/build/2.0.0-alpha-46/artifacts">
https://ci.appveyor.com/project/justinyoo/entity-context-library/bu...</a></li>
</ul>
<p>These two are the build after your suggestion to push
artifacts.</p></div>justin.yoojhtag:help.appveyor.com,2012-11-13:Comment/395112352016-03-30T11:44:37Z2016-03-30T11:44:37ZArtifact not published although it is created - DNX library<div><p>Found out what was wrong. It was a typo. Thanks for your
help!</p></div>justin.yoojh