Last active
March 12, 2018 22:47
-
-
Save uhaciogullari/946548ad3f1cbee010a1655c445f7371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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