Skip to content

Commit 355bf5b

Browse files
committed
2 parents 63e93d9 + 5eeddc6 commit 355bf5b

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
script: |
110110
mkdir $(Build.ArtifactStagingDirectory)\nupkg
111111
Write-Host $(PackageVersionCLI)
112-
& dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI)
112+
& 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
113113
114114
- task: PowerShell@2
115115
condition: and(succeeded(), eq(variables['BUILD_IS_ALPHA'], 'True'))
@@ -119,7 +119,7 @@ jobs:
119119
script: |
120120
mkdir $(Build.ArtifactStagingDirectory)\nupkg
121121
Write-Host $(PackageVersionCLI)
122-
& 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:VersionSuffix=alpha
122+
& 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
123123
124124
- task: CopyFiles@2
125125
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'],'True'))
@@ -138,7 +138,6 @@ jobs:
138138
7z a $(Build.ArtifactStagingDirectory)\TemplateGenerator_$(PackageVersion)_win64.zip $(Build.ArtifactStagingDirectory)\*
139139
140140
- task: PublishPipelineArtifact@0
141-
enabled: false
142141
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'],'True'))
143142
inputs:
144143
artifactName: 'drop'
@@ -149,37 +148,3 @@ jobs:
149148
inputs:
150149
artifactName: 'nupkg'
151150
targetPath: '$(Build.ArtifactStagingDirectory)\nupkg'
152-
153-
- task: PublishGitHubRelease@0
154-
enabled: true
155-
displayName: 'Publish-GitHub-Alpha'
156-
condition: and(succeeded(), eq(variables['BUILD_IS_ALPHA'],'True'))
157-
inputs:
158-
applicationName: '$(GitHubApplicationName)'
159-
gitSourceOption: 'github'
160-
token: '$(GitHubAccessToken)'
161-
repo: '$(GitHubRepoName)'
162-
owner: 'taori'
163-
tagName: 'alpha-$(PackageVersion)'
164-
releaseName: 'alpha-$(PackageVersion)'
165-
releaseBody: 'Automated release from Azure DevOps'
166-
draft: false
167-
prerelease: true
168-
assetsPattern: '$(GitHubAssetsPattern)'
169-
170-
- task: PublishGitHubRelease@0
171-
enabled: true
172-
displayName: 'Publish-GitHub-Release'
173-
condition: and(succeeded(), eq(variables['BUILD_IS_RELEASE'],'True'))
174-
inputs:
175-
applicationName: '$(GitHubApplicationName)'
176-
gitSourceOption: 'github'
177-
token: '$(GitHubAccessToken)'
178-
repo: '$(GitHubRepoName)'
179-
owner: 'taori'
180-
tagName: 'release-$(PackageVersion)'
181-
releaseName: 'release-$(PackageVersion)'
182-
releaseBody: 'Automated release from Azure DevOps'
183-
draft: false
184-
prerelease: false
185-
assetsPattern: '$(GitHubAssetsPattern)'

0 commit comments

Comments
 (0)