mirror of https://github.com/SixLabors/ImageSharp
9 changed files with 73 additions and 36 deletions
@ -1,20 +1,13 @@ |
|||
param( |
|||
[Parameter(Mandatory, Position = 0)] |
|||
[string]$version, |
|||
[Parameter(Mandatory = $false, Position = 1)] |
|||
[string]$targetFramework = 'ALL' |
|||
[Parameter(Mandatory = $true, Position = 1)] |
|||
[string]$targetFramework |
|||
) |
|||
|
|||
dotnet clean -c Release |
|||
|
|||
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY" |
|||
if ($targetFramework -ne 'ALL') { |
|||
|
|||
# Building for a specific framework. |
|||
dotnet build -c Release -f $targetFramework /p:packageversion=$version /p:RepositoryUrl=$repositoryUrl |
|||
} |
|||
else { |
|||
|
|||
# Building for packing and publishing. |
|||
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:packageversion=$version /p:RepositoryUrl=$repositoryUrl |
|||
} |
|||
# Building for a specific framework. |
|||
dotnet build -c Release -f $targetFramework /p:packageversion=$version /p:RepositoryUrl=$repositoryUrl |
|||
|
|||
@ -0,0 +1,11 @@ |
|||
param( |
|||
[Parameter(Mandatory, Position = 0)] |
|||
[string]$version |
|||
) |
|||
|
|||
dotnet clean -c Release |
|||
|
|||
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY" |
|||
|
|||
# Building for packing and publishing. |
|||
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:packageversion=$version /p:RepositoryUrl=$repositoryUrl |
|||
@ -1,11 +0,0 @@ |
|||
<configuration> |
|||
<packageSources> |
|||
<clear /> |
|||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> |
|||
<!-- |
|||
Contains RemoteExecutor. Taken from: |
|||
https://github.com/dotnet/runtime/blob/master/NuGet.config |
|||
--> |
|||
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" /> |
|||
</packageSources> |
|||
</configuration> |
|||
Loading…
Reference in new issue