Skip to content

Commit

Permalink
Build docs in separate pipeline (#71)
Browse files Browse the repository at this point in the history
* Build docs in separate pipeline

* Fix .NET Fx 4.8
  • Loading branch information
gfoidl authored Dec 14, 2021
1 parent 2844394 commit 31698c9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .azure/pipelines/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
variables:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
CI_BUILD_NUMBER: $(Build.BuildId)
BRANCH_NAME: $(Build.SourceBranchName)
TAG_NAME: $(Build.SourceBranchName)

# We don't need a CI trigger here, as the pipeline trigger starts this pipeline for master anyway.
trigger: none

resources:
pipelines:
- pipeline: ci-build
source: DataCompression
trigger:
branches:
include:
- master

stages:
- stage: Build_Docs
jobs:
- template: jobs/build_docs.yml

- stage: Deploy
dependsOn:
- Build_Docs
condition: and( succeeded(), startsWith( variables['Build.SourceBranch'], 'refs/tags' ) )
jobs:
- template: jobs/deploy_docs.yml
16 changes: 4 additions & 12 deletions .azure/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ variables:

trigger:
- master
- ci-*
- refs/tags/v*

pr:
Expand All @@ -16,30 +15,23 @@ pr:
- master

stages:
- stage: Build_Test_Windows
- stage: Build_Test
jobs:
- template: jobs/build_and_test.yml
parameters:
# Need for tests .NET Framework 4.8
name: windows
vmImage: 'windows-2022'

- stage: Code_Coverage
dependsOn:
- Build_Test_Windows
- Build_Test
jobs:
- template: jobs/coverage.yml

- stage: Build_Docs
dependsOn:
- Build_Test_Windows
jobs:
- template: jobs/build_docs.yml

- stage: Deploy
dependsOn:
- Build_Test_Windows
- Build_Docs
- Build_Test
condition: and( succeeded(), startsWith( variables['Build.SourceBranch'], 'refs/tags' ) )
jobs:
- template: jobs/deploy_nuget.yml
- template: jobs/deploy_docs.yml
2 changes: 1 addition & 1 deletion .azure/pipelines/jobs/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
vmImage: ''

jobs:
- job: ${{ parameters.name }}
- job: ${{ parameters.name }}_build
displayName: '${{ parameters.name }} build and test'
pool:
vmImage: ${{ parameters.vmImage }}
Expand Down
1 change: 1 addition & 0 deletions gfoidl.DataCompression.sln
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pipelines", "pipelines", "{
ProjectSection(SolutionItems) = preProject
.azure\pipelines\ci-benchmarks.yml = .azure\pipelines\ci-benchmarks.yml
.azure\pipelines\ci-demos.yml = .azure\pipelines\ci-demos.yml
.azure\pipelines\ci-docs.yml = .azure\pipelines\ci-docs.yml
.azure\pipelines\ci.yml = .azure\pipelines\ci.yml
EndProjectSection
EndProject
Expand Down

0 comments on commit 31698c9

Please sign in to comment.