Skip to content

Instantly share code, notes, and snippets.

@uhaciogullari
Last active March 12, 2018 22:47
Show Gist options
  • Save uhaciogullari/946548ad3f1cbee010a1655c445f7371 to your computer and use it in GitHub Desktop.
Save uhaciogullari/946548ad3f1cbee010a1655c445f7371 to your computer and use it in GitHub Desktop.
# first folder contains the csproj you want to package
# second folder is the relative path to your nuget feed folder from the library folder
dotnet pack -c Release ./src/Trail.Common -o ./../../../nuget-feed
# switch to feed folder
cd ../nuget-feed
# add new package
git add -A
# get the file name
export NewFile=`git status --porcelain | awk '{print $2}'`
# commit & push
git commit -m "Added $NewFile"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment