ci(release): working on script flow
This commit is contained in:
parent
739d0674fa
commit
e71f389fcd
1 changed files with 4 additions and 4 deletions
|
@ -27,15 +27,15 @@ fi
|
|||
|
||||
# Build to pick up the new version.
|
||||
echo "$(basename $0): building project $SEMVER"
|
||||
dotnet build
|
||||
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
|
||||
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
|
||||
|
||||
echo "$(basename $0): publishing NuGet package"
|
||||
dotnet pack --include-symbols --include-source
|
||||
dotnet nuget push --source mfgamessrc/*/bin/Debug/*.nupkg
|
||||
dotnet pack --include-symbols --include-source || exit 1
|
||||
dotnet nuget push --source mfgames 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
|
||||
|
|
Reference in a new issue