Skip to content

Commit ccdd383

Browse files
committed
simplify
1 parent bb390af commit ccdd383

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/win-build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,12 @@ jobs:
5252
run: just test Rubjerg.Graphviz.TransitiveTest/Rubjerg.Graphviz.TransitiveTest.csproj
5353

5454

55-
# Locate the package that GeneratePackageOnBuild just produced
5655
- name: Locate nupkg
5756
id: pkg
58-
shell: pwsh
5957
run: |
60-
# search everywhere under Rubjerg.Graphviz\bin\ for the first package
61-
$pkg = Get-ChildItem Rubjerg.Graphviz\bin -Recurse -Filter "Rubjerg.Graphviz.*.nupkg" -File |
62-
Where-Object { $_.Name -notlike "*.symbols.nupkg" } |
63-
Select-Object -First 1
58+
pkg=$(find . -name "Rubjerg.Graphviz.*.nupkg" | head -1)
59+
echo "package=$pkg" >> "$GITHUB_OUTPUT"
6460
65-
if (-not $pkg) { throw "Rubjerg.Graphviz nupkg not found" }
66-
67-
"package=$($pkg.FullName)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
68-
69-
# Upload that single file
7061
- uses: actions/upload-artifact@v4
7162
with:
7263
name: win-bits

0 commit comments

Comments
 (0)