Skip to content

Commit c01445a

Browse files
committed
release: close pack if-block exactly; ensure artifacts downloaded and listed before creating release
1 parent 98d942d commit c01445a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ jobs:
4949
run: |
5050
if [ -f "src/AiDotNet.csproj" ]; then
5151
dotnet pack src/AiDotNet.csproj -c Release -o out /p:PackageVersion=${{ steps.version.outputs.version }}
52-
else
53-
echo "src/AiDotNet.csproj not found; skipping pack"
5452
fi
5553
5654
- name: Verify TFMs in package (net46, net6.0, net8.0)
@@ -106,6 +104,10 @@ jobs:
106104
with:
107105
name: nuget-out-${{ github.sha }}
108106
path: out/
107+
if-no-files-found: error
108+
109+
- name: List downloaded artifacts
110+
run: ls -la out
109111

110112
- name: Create Release
111113
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)