chore(release): removing same source as in NuGet.config
This commit is contained in:
parent
0603603be0
commit
962e1f0d11
1 changed files with 5 additions and 6 deletions
|
@ -30,14 +30,13 @@ echo "$(basename $0): building project $SEMVER"
|
||||||
dotnet build || exit 1
|
dotnet build || exit 1
|
||||||
|
|
||||||
# Create and publish the NuGet packages.
|
# Create and publish the NuGet packages.
|
||||||
echo "$(basename $0): registering NuGet source"
|
echo "$(basename $0): creating NuGet packages"
|
||||||
dotnet nuget remove source publish >& /dev/null
|
dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1
|
||||||
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"
|
echo "$(basename $0): publishing NuGet package"
|
||||||
dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg || exit 1
|
dotnet nuget remove source mfgames.com >& /dev/null
|
||||||
dotnet nuget push --source publish src/*/bin/Debug/*nupkg || exit 1
|
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 remove source publish >& /dev/null
|
dotnet nuget push --source mfgames.com src/*/bin/Debug/*nupkg || exit 1
|
||||||
|
|
||||||
# Tag and push, but only if we don't have a tag.
|
# Tag and push, but only if we don't have a tag.
|
||||||
if ! git tag | grep $SEMVER >& /dev/null
|
if ! git tag | grep $SEMVER >& /dev/null
|
||||||
|
|
Reference in a new issue