From 962e1f0d11ce9b533718d8d0850fd79f9ed91f4f Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Mon, 5 Sep 2022 17:25:28 -0500 Subject: [PATCH] chore(release): removing same source as in NuGet.config --- scripts/release.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 5024656..996c268 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -30,14 +30,13 @@ echo "$(basename $0): building project $SEMVER" dotnet build || exit 1 # Create and publish the NuGet packages. -echo "$(basename $0): registering NuGet source" -dotnet nuget remove source publish >& /dev/null -dotnet nuget add source --name publish --username dmoonfire --password $GITEA_TOKEN https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json --store-password-in-clear-text || exit 1 +echo "$(basename $0): creating NuGet packages" +dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1 echo "$(basename $0): publishing NuGet package" -dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1 -dotnet nuget push --source publish src/*/bin/Debug/*nupkg || exit 1 -dotnet nuget remove source publish >& /dev/null +dotnet nuget remove source mfgames.com >& /dev/null +dotnet nuget add source --name mfgames.com --username dmoonfire --password $GITEA_TOKEN https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json --store-password-in-clear-text || exit 1 +dotnet nuget push --source mfgames.com src/*/bin/Debug/*nupkg || exit 1 # Tag and push, but only if we don't have a tag. if ! git tag | grep $SEMVER >& /dev/null