Skip to content

Fix NuGet push script #1618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ReleaseProcedure.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ Tools\gitreleasemanager.0.7.0\tools\GitReleaseManager.exe create -o nhibernate -
* Upload binary and source zip files to SourceForge. Update the "latest
release".

* Update download link on nhibernate.info.
* Update download link on nhibernate.info. Update the reference documentation
if needed.

* Push nuget packages including the symbol packages.

* In GitHub, mark the milestone as released and publish the release draft,
creating the release tag by the way. (It should match the tag in the
releasenots link of the release description.)
releasenotes link of the release description.)

* Post release announcement to nhusers, nhibernate-development and as
project news on SourceForge.
Expand Down
13 changes: 12 additions & 1 deletion default.build
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,21 @@
<in>
<items>
<include name="${nuget.nupackages.dir}/*.nupkg"/>
<exclude name="${nuget.nupackages.dir}/*.symbols.nupkg"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to having to specify the destination, symbols package needs now a different command line.

</items>
</in>
<do>
<echo message="nuget push ${filename} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
<echo message="nuget push -source https://nuget.org/ ${path::get-file-name(filename)} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
</do>
</foreach>
<foreach item="File" property="filename">
<in>
<items>
<include name="${nuget.nupackages.dir}/*.symbols.nupkg"/>
</items>
</in>
<do>
<echo message="nuget push -source https://nuget.smbsrc.net/ ${path::get-file-name(filename)} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
</do>
</foreach>
</target>
Expand Down