Update .gitea/workflows/publish-nuget.yaml

Fix workflow bug
This commit is contained in:
2025-11-04 08:54:36 +00:00
parent b2fda1c01b
commit d941609ae0

View File

@@ -28,12 +28,12 @@ jobs:
run: | run: |
set -e set -e
for projfile in $(find . -name "*.csproj"); do for projfile in $(find . -name "*.csproj"); do
if grep -q "<IsPackable>true</IsPackable>" "$projfile"; then if grep -q "<IsPackable>true</IsPackable>" "$projfile"; then
echo "Packing $projfile..." echo "Packing $projfile..."
if ! dotnet pack "$projfile" -c Release -o ./artifacts; then if ! dotnet pack "$projfile" -c Release -o ./artifacts; then
echo "⚠️ Failed to pack $projfile" echo "Failed to pack $projfile"
fi fi
fi fi
done done
- name: Publish all packages - name: Publish all packages