Skip to content

Commit 343a7c8

Browse files
committed
fix: use pwsh glob for nupkg push on Windows runner
1 parent a2310fe commit 343a7c8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ jobs:
8686
run: dotnet pack src/TSG/TSG.csproj -c Release -o artifacts -p:Version=${{ steps.ver.outputs.VERSION }}
8787

8888
- name: Push to NuGet
89-
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.NUGET_TSG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
89+
shell: pwsh
90+
run: |
91+
$pkg = Get-ChildItem artifacts/*.nupkg | Select-Object -First 1
92+
dotnet nuget push $pkg.FullName --api-key ${{ secrets.NUGET_TSG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
9093
9194
- name: GitHub Release
9295
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)