-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b078e4
commit 295fa95
Showing
7 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$sourceLocation = "../dist/csharp" | ||
#Ensure we run this "from this folder" as we run it personally in a command line as well as through the perspective of builds. | ||
Set-Location -Path "$PSScriptRoot" | ||
|
||
if (-not (Test-Path -Path $sourceLocation -PathType Container)) { | ||
throw "The source location '$sourceLocation' does not exist." | ||
} | ||
|
||
& dotnet pack $sourceLocation --configuration Release --include-source --include-symbols --output $sourceLocation | ||
& dotnet nuget push "$sourceLocation/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key $env:NUGET_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
$version = &"$PSScriptRoot\get-version.ps1" -patchVersion "0" | ||
$version = &"$PSScriptRoot\get-version.ps1" -patchVersion "1" | ||
$additionalProperties = @{ | ||
packageName = "Trinsic.Connect.BackendClient" | ||
packageVersion = $version | ||
nullableReferenceTypes = "true" | ||
modelPropertySorting = "alphabetical" | ||
library = "httpclient" | ||
useDateTimeOffset = "true" | ||
validatable = "false" | ||
} | ||
& "$PSScriptRoot\generate-client.ps1" -language "csharp" -additionalProperties $additionalProperties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"apiVersion": "0.2" | ||
"apiVersion": "0.1" | ||
} |