Skip to content

Commit

Permalink
fix brandedoutcast#15 by choosing the appropriate package to be pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
brandedoutcast committed Mar 6, 2020
1 parent e2920cd commit 5fdc86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Action {

this._execInProc(`dotnet build -c Release ${this.PROJECT_FILE_PATH}`)
this._execInProc(`dotnet pack --no-build -c Release ${this.PROJECT_FILE_PATH} -o .`)
const NUGET_PUSH_RESPONSE = this._execAndCapture(`dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${this.NUGET_KEY}`)
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}`)
const NUGET_ERROR_REGEX = /(error: Response status code does not indicate success.*)/

if (NUGET_ERROR_REGEX.test(NUGET_PUSH_RESPONSE))
Expand Down

0 comments on commit 5fdc86f

Please sign in to comment.