From 0603603be06cd529f76055c379c6610a338efa93 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Mon, 5 Sep 2022 17:15:21 -0500 Subject: [PATCH] chore: tweaking NuGet publish process --- scripts/release.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index db55a27..5024656 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -31,12 +31,13 @@ dotnet build || exit 1 # Create and publish the NuGet packages. echo "$(basename $0): registering NuGet source" -dotnet nuget remove source mfgames.publish -dotnet nuget add source --name mfgames.publish --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 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): publishing NuGet package" dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1 -dotnet nuget push --source mfgames.publish src/*/bin/Debug/*nupkg || exit 1 +dotnet nuget push --source publish src/*/bin/Debug/*nupkg || exit 1 +dotnet nuget remove source publish >& /dev/null # Tag and push, but only if we don't have a tag. if ! git tag | grep $SEMVER >& /dev/null