Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.yml #170

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
name: $(Date:yyyyMMdd).$(Rev:r)
parameters:
- name: OfficialRelease
displayName: "Build and publish an official release"
type: boolean
default: false
variables:
- name: BuildParameters.vsVersion
value: 17.0
- name: Build.OfficialRelease
value: false
value: ${{ parameters.OfficialRelease }}
- name: Codeql.Enabled
value: true
- name: Codeql.Language
value: csharp
- name: SignType
${{ if eq(variables['Build.OfficialRelease'], 'true') }}:
${{ if eq(parameters.OfficialRelease, true) }}:
value: real
${{ else }}:
value: test
- name: TeamName
value: vscx-tools-authoring
- name: TimestampPackage
value: true
schedules:
- cron: '0 0 1 * 0'
displayName: Monthly CodeQL Build
branches:
include:
- main
always: true
value: ${{ not (parameters.OfficialRelease) }}
trigger:
branches:
include:
Expand Down Expand Up @@ -71,7 +69,7 @@ extends:
publishVstsFeed: 97a41293-2972-4f48-8c0e-05493ae82010
- output: nuget
displayName: 'NuGet push to NuGet.org'
condition: and(and(succeeded(), eq(variables['Build.OfficialRelease'], 'true')), eq(variables['TimestampPackage'], 'false'))
condition: and(succeeded(), eq(variables['Build.OfficialRelease'], 'true'))
mgoertz-msft marked this conversation as resolved.
Show resolved Hide resolved
packageParentPath: '$(Build.ArtifactStagingDirectory)\Packages'
packagesToPush: $(Build.ArtifactStagingDirectory)\Packages\*.nupkg;!$(Build.ArtifactStagingDirectory)\Packages\*.symbols.nupkg
nuGetFeedType: external
Expand Down Expand Up @@ -150,4 +148,4 @@ extends:
TargetFolder: $(Build.ArtifactStagingDirectory)\Packages
OverWrite: true
flattenFolders: true
continueOnError: true
continueOnError: true
Loading