Skip to content

Commit

Permalink
Publish source index directly from repo (#7189)
Browse files Browse the repository at this point in the history
* Use technique from aspnetcore to publish Source Index w/o jobs.yml
  • Loading branch information
directhex authored Jul 10, 2024
1 parent 77e9024 commit f5abe6a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ variables:
value: 1es-windows-2019
- name: MacImage
value: macOS-12
- ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
- name: enableSourceIndex
value: true
- template: /eng/common/templates-official/variables/pool-providers.yml@self

resources:
Expand Down Expand Up @@ -296,6 +299,15 @@ extends:
- script: $(Build.SourcesDirectory)/.dotnet/dotnet.exe build-server shutdown
displayName: Dotnet Server Shutdown

- ${{ if eq(variables.enableSourceIndex, 'true') }}:
- template: /eng/common/templates-official/job/source-index-stage1.yml@self
parameters:
sourceIndexBuildCommand: ./build.cmd -ci -configuration Release /p:TargetArchitecture=x64 /bl
binlogPath: msbuild.binlog
pool:
name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals 1es-windows-2022

- template: /eng/common/templates-official/job/publish-build-assets.yml@self
parameters:
dependsOn: Package
Expand Down

0 comments on commit f5abe6a

Please sign in to comment.