consolidate files
This commit is contained in:
Родитель
0e8b0994a6
Коммит
1cda0af7eb
|
@ -1,6 +1,5 @@
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
- develop
|
|
||||||
- rel/*
|
- rel/*
|
||||||
|
|
||||||
queue: Hosted VS2017
|
queue: Hosted VS2017
|
||||||
|
@ -13,35 +12,33 @@ steps:
|
||||||
modifyEnvironment: true
|
modifyEnvironment: true
|
||||||
displayName: Setup Environment Variables
|
displayName: Setup Environment Variables
|
||||||
|
|
||||||
- task: NuGetToolInstaller@0
|
- task: DotNetCoreCLI@2
|
||||||
displayName: Use NuGet 4.6.2
|
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: 4.6.2
|
command: custom
|
||||||
|
custom: tool
|
||||||
|
arguments: install --tool-path . nbgv
|
||||||
|
displayName: Install NBGV tool
|
||||||
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- script: nbgv cloud
|
||||||
inputs:
|
|
||||||
command: build
|
|
||||||
projects: script/setversion.csproj
|
|
||||||
arguments: -c Release
|
|
||||||
displayName: Set Version
|
displayName: Set Version
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- powershell: |
|
- script: build.cmd
|
||||||
nuget install SignClient -Version 0.9.1 -SolutionDir $(Build.SourcesDirectory) -Verbosity quiet -ExcludeVersion
|
|
||||||
.\build.cmd
|
|
||||||
displayName: Build
|
displayName: Build
|
||||||
env:
|
env:
|
||||||
SIGNCLIENT_SECRET: $(SignClientSecret)
|
SIGNCLIENT_SECRET: $(SignClientSecret)
|
||||||
SIGNCLIENT_USER: $(SignClientUser)
|
SIGNCLIENT_USER: $(SignClientUser)
|
||||||
VSTS_ACCESS_TOKEN: $(System.AccessToken)
|
VSTS_ACCESS_TOKEN: $(System.AccessToken)
|
||||||
COVERALLS_TOKEN: $(COVERALLS_TOKEN)
|
COVERALLS_TOKEN: $(COVERALLS_TOKEN)
|
||||||
|
ArtifactDirectory: $(System.DefaultWorkingDirectory)\artifacts
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
Contents: 'artifacts/*.nupkg'
|
Contents: 'artifacts/*.nupkg'
|
||||||
TargetFolder: '$(build.artifactstagingdirectory)\packages'
|
TargetFolder: '$(build.artifactstagingdirectory)\packages'
|
||||||
flattenFolders: true
|
flattenFolders: true
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Publish Package Artifacts
|
displayName: Publish Package Artifacts
|
||||||
|
@ -49,13 +46,13 @@ steps:
|
||||||
pathToPublish: '$(build.artifactstagingdirectory)\packages'
|
pathToPublish: '$(build.artifactstagingdirectory)\packages'
|
||||||
artifactType: container
|
artifactType: container
|
||||||
artifactName: Packages
|
artifactName: Packages
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
Contents: '**/bin/*'
|
Contents: '**/bin/*'
|
||||||
TargetFolder: '$(build.artifactstagingdirectory)\binaries'
|
TargetFolder: '$(build.artifactstagingdirectory)\binaries'
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Publish Binaries
|
displayName: Publish Binaries
|
||||||
|
@ -63,13 +60,13 @@ steps:
|
||||||
pathToPublish: '$(build.artifactstagingdirectory)\binaries'
|
pathToPublish: '$(build.artifactstagingdirectory)\binaries'
|
||||||
artifactType: container
|
artifactType: container
|
||||||
artifactName: Binaries
|
artifactName: Binaries
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
Contents: 'src/ReactiveUI.**/Events_*.cs'
|
Contents: 'src/ReactiveUI.**/Events_*.cs'
|
||||||
TargetFolder: '$(build.artifactstagingdirectory)\Events'
|
TargetFolder: '$(build.artifactstagingdirectory)\Events'
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Publish Generated Events
|
displayName: Publish Generated Events
|
||||||
|
@ -77,4 +74,4 @@ steps:
|
||||||
pathToPublish: '$(build.artifactstagingdirectory)\Events'
|
pathToPublish: '$(build.artifactstagingdirectory)\Events'
|
||||||
artifactType: container
|
artifactType: container
|
||||||
artifactName: Events
|
artifactName: Events
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
|
|
@ -6,18 +6,17 @@ if([string]::IsNullOrWhitespace($env:SIGNCLIENT_SECRET)){
|
||||||
[System.Environment]::Exit(1);
|
[System.Environment]::Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setup Variables we need to pass into the sign client tool
|
dotnet tool install --tool-path . SignClient
|
||||||
|
|
||||||
|
# Setup Variables we need to pass into the sign client tool
|
||||||
$appSettings = "$currentDirectory\SignPackages.json"
|
$appSettings = "$currentDirectory\SignPackages.json"
|
||||||
|
|
||||||
$appPath = "$currentDirectory\packages\SignClient\tools\netcoreapp2.0\SignClient.dll"
|
$nupgks = gci $Env:ArtifactDirectory\*.nupkg | Select -ExpandProperty FullName
|
||||||
|
|
||||||
$nupgks = ls $currentDirectory\artifacts\*.nupkg | Select -ExpandProperty FullName
|
|
||||||
|
|
||||||
foreach ($nupkg in $nupgks){
|
foreach ($nupkg in $nupgks){
|
||||||
Write-Host "Submitting $nupkg for signing"
|
Write-Host "Submitting $nupkg for signing"
|
||||||
|
|
||||||
dotnet $appPath 'sign' -c $appSettings -i $nupkg -r $env:SIGNCLIENT_USER -s $env:SIGNCLIENT_SECRET -n 'ReactiveUI' -d 'ReactiveUI' -u 'https://reactiveui.net'
|
.\SignClient 'sign' -c $appSettings -i $nupkg -r $env:SIGNCLIENT_USER -s $env:SIGNCLIENT_SECRET -n 'ReactiveUI' -d 'ReactiveUI' -u 'https://reactiveui.net'
|
||||||
|
|
||||||
Write-Host "Finished signing $nupkg"
|
Write-Host "Finished signing $nupkg"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="all" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"inherit": true,
|
|
||||||
"cloudBuild": {
|
|
||||||
"buildNumber": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Загрузка…
Ссылка в новой задаче