fix(release): changing NuGet publish and pack

This commit is contained in:
D. Moonfire 2022-09-05 17:05:52 -05:00
parent 4093d9c0cb
commit 294d9c0a38

View file

@ -31,11 +31,12 @@ dotnet build || exit 1
# Create and publish the NuGet packages.
echo "$(basename $0): registering NuGet source"
dotnet nuget add source --name mfgames --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 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
echo "$(basename $0): publishing NuGet package"
dotnet pack --include-symbols --include-source || exit 1
dotnet nuget push --source mfgames src/*/bin/Debug/*nupkg || exit 1
dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1
dotnet nuget push --source mfgames.publish 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