Fix workflow
Some checks failed
Publish NuGet Packages / publish (push) Failing after 1m36s

This commit is contained in:
2025-11-04 18:08:04 +09:00
parent fa7f270430
commit 8395914cef

View File

@@ -28,7 +28,7 @@ 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"
@@ -43,7 +43,7 @@ jobs:
set -x set -x
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
projname=$(basename "$projfile" .csproj) projname=$(basename "$projfile" .csproj)
echo "Checking $projname..." echo "Checking $projname..."
pkg=$(find "$projname/bin/Release" -maxdepth 1 -type f \ pkg=$(find "$projname/bin/Release" -maxdepth 1 -type f \
@@ -54,7 +54,7 @@ jobs:
--source "https://git.personalnas.com/api/packages/Misaki/nuget/index.json" \ --source "https://git.personalnas.com/api/packages/Misaki/nuget/index.json" \
--api-key "$NUGET_API_KEY" --api-key "$NUGET_API_KEY"
else else
echo "No package found for $projname" echo "No package found for $projname"
fi fi
fi fi
done done