From 4093d9c0cbbeaea20adcea5022e03e82e08d843a Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Mon, 5 Sep 2022 16:56:41 -0500 Subject: [PATCH] fix(template): trying a tag push --- scripts/release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 6e27208..e8a7094 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -35,14 +35,16 @@ dotnet nuget add source --name mfgames --username dmoonfire --password $GITEA_TO 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 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 then echo "$(basename $0): tagging and pushing" + git remote add publish https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/mfgames-cil/$(basename $(git config --get remote.origin.url)) git tag $SEMVER - git push origin $SEMVER + git push publish $SEMVER || exit 1 + git remote remove publish else echo "$(basename $0): not tagging, already exists" fi