Skip to content

Commit d9c8239

Browse files
committed
2 parents ebbe0d0 + c4683bb commit d9c8239

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ variables:
3232
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
3333
value: 1
3434
- name: BUILD_PUBLISH_ARTIFACTS
35-
value: ${{or(startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))}}
35+
value: $[or(startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))]
3636
- name: BUILD_IS_RELEASE
37-
value: ${{startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/')}}
37+
value: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/')]
3838
- name: BUILD_IS_ALPHA
39-
value: ${{eq(variables['Build.SourceBranch'], 'refs/heads/master')}}
39+
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
4040

4141
pool:
4242
vmImage: 'windows-2019'
@@ -108,6 +108,7 @@ jobs:
108108
targetType: 'inline'
109109
script: |
110110
mkdir $(Build.ArtifactStagingDirectory)\nupkg
111+
Write-Host $(PackageVersion)
111112
Write-Host $(PackageVersionCLI)
112113
& dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI) /p:SymbolPackageFormat=snupkg --include-symbols --version-suffix=beta
113114
@@ -117,8 +118,13 @@ jobs:
117118
inputs:
118119
targetType: 'inline'
119120
script: |
121+
dotnet --version
120122
mkdir $(Build.ArtifactStagingDirectory)\nupkg
123+
Write-Host $(PackageVersion)
121124
Write-Host $(PackageVersionCLI)
125+
$commandSample = "dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI) /p:SymbolPackageFormat=snupkg --include-symbols --version-suffix=alpha"
126+
Write-Host $commandSample
127+
Invoke-Expression $commandSample
122128
& dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI) /p:SymbolPackageFormat=snupkg --include-symbols --version-suffix=alpha
123129
124130
- task: CopyFiles@2

0 commit comments

Comments
 (0)