Update .gitea/workflows/publish-nuget.yaml
Fix the searching path
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
|||||||
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 ./artifacts -maxdepth 1 -type f \
|
||||||
-name "$projname.*.nupkg" ! -name "*.symbols.nupkg" | sort -V | tail -n1)
|
-name "$projname.*.nupkg" ! -name "*.symbols.nupkg" | sort -V | tail -n1)
|
||||||
if [ -n "$pkg" ]; then
|
if [ -n "$pkg" ]; then
|
||||||
echo "Pushing $pkg"
|
echo "Pushing $pkg"
|
||||||
|
|||||||
Reference in New Issue
Block a user