Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

Commit 5fdc86f

Browse files
fix #15 by choosing the appropriate package to be pushed
1 parent e2920cd commit 5fdc86f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Action {
5555

5656
this._execInProc(`dotnet build -c Release ${this.PROJECT_FILE_PATH}`)
5757
this._execInProc(`dotnet pack --no-build -c Release ${this.PROJECT_FILE_PATH} -o .`)
58-
const NUGET_PUSH_RESPONSE = this._execAndCapture(`dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${this.NUGET_KEY}`)
58+
const NUGET_PUSH_RESPONSE = this._execAndCapture(`dotnet nuget push ${this.PACKAGE_NAME}*.nupkg -s https://api.nuget.org/v3/index.json -k ${this.NUGET_KEY}`)
5959
const NUGET_ERROR_REGEX = /(error: Response status code does not indicate success.*)/
6060

6161
if (NUGET_ERROR_REGEX.test(NUGET_PUSH_RESPONSE))

0 commit comments

Comments
 (0)