Skip to content

Commit a5f2b96

Browse files
Fix nuget push path: use explicit filename instead of glob (#28)
dotnet nuget push does not expand glob patterns on Windows/PowerShell. Replace ./artifacts/*.nupkg with the exact filename derived from the nbgv version output.
1 parent a2842cc commit a5f2b96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
user: ${{ secrets.NUGET_USER }}
4545

4646
- name: nuget push
47-
run: dotnet nuget push "./artifacts/*.nupkg" --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
47+
run: dotnet nuget push "./artifacts/Dax.Formatter.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg" --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
4848

4949
- name: create github release
5050
env:

0 commit comments

Comments
 (0)