Skip to content

Commit

Permalink
fix brandedoutcast#13 with an explicit build before pack
Browse files Browse the repository at this point in the history
  • Loading branch information
brandedoutcast committed Feb 29, 2020
1 parent dbb450e commit e2920cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Action {

_pushPackage() {
if (!this.NUGET_KEY) {
this._warn("😢 nuget_key not given")
this._warn("😢 NUGET_KEY not given")
return
}

Expand All @@ -53,7 +53,8 @@ class Action {
return
}

this._execInProc(`dotnet pack -c Release ${this.PROJECT_FILE_PATH} -o .`)
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_ERROR_REGEX = /(error: Response status code does not indicate success.*)/

Expand Down

0 comments on commit e2920cd

Please sign in to comment.