improve: better version control

This commit is contained in:
h z
2025-02-18 21:22:47 +00:00
parent 87cd097ac2
commit 8b358074fd
4 changed files with 10 additions and 38 deletions

12
publish Normal file → Executable file
View File

@@ -1,8 +1,12 @@
#!/bin/bash
SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")/
LATEST_PACKAGE=$(ls -t "${SCRIPT_DIR}"bin/Debug/Polonium.Sdk.*.nupkg 2>/dev/null | head -n 1)
dotnet nuget push "$(ls -t ./bin/Debug/Polonium.*.nupkg | head -n 1)" --source hangman-lab
if [[ -z "$LATEST_PACKAGE" ]]; then
echo "❌ Error: No .nupkg file found in ${SCRIPT_DIR}/bin/Debug/"
exit 1
fi
echo "🚀 Pushing NuGet package: $LATEST_PACKAGE"
dotnet nuget push "$LATEST_PACKAGE" --source hangman-lab
../Polonium/publish
../Polonium.Tasks/publish
../Polonium.Generator/publish