Skip to content

Commit

Permalink
[CI] Replace doc links in sources on package build
Browse files Browse the repository at this point in the history
  • Loading branch information
melanchall committed Jun 8, 2022
1 parent 75cdbb9 commit a1a388a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 2 additions & 0 deletions Resources/CI/Templates/job-build-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
$xml.Project.PropertyGroup[1].Version = $newVersion
$xml.Save($filePath)
- template: step-generate-doc-links.yaml

- task: PowerShell@2
displayName: Generate obsolete API hints
inputs:
Expand Down
15 changes: 15 additions & 0 deletions Resources/CI/Templates/step-generate-doc-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- task: DotNetCoreCLI@2
displayName: Build project for docs
inputs:
command: 'build'
projects: 'DryWetMidi/Melanchall.DryWetMidi.csproj'
arguments: '--configuration $(BuildConfiguration)'

- template: step-build-docs.yaml

- task: PowerShell@2
displayName: Generate doc links
inputs:
targetType: filePath
filePath: '$(Build.SourcesDirectory)/Resources/Scripts/Generate doc links.ps1'
16 changes: 2 additions & 14 deletions Resources/CI/build-artifacts-library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ trigger:
- 'Resources/CI/Templates/step-copy-native-libraries-near-csproj.yaml'
- 'Resources/CI/Templates/job-build-package.yaml'
- 'Resources/CI/Templates/step-build-docs.yaml'
- 'Resources/CI/Templates/step-generate-doc-links.yaml'
- 'Resources/Native/*'

pr: none
Expand All @@ -34,20 +35,7 @@ stages:
- job: BuildBinaries
displayName: Build binaries
steps:
- task: DotNetCoreCLI@2
displayName: Build project for docs
inputs:
command: 'build'
projects: 'DryWetMidi/Melanchall.DryWetMidi.csproj'
arguments: '--configuration $(BuildConfiguration)'

- template: Templates/step-build-docs.yaml

- task: PowerShell@2
displayName: Generate doc links
inputs:
targetType: filePath
filePath: '$(Build.SourcesDirectory)/Resources/Scripts/Generate doc links.ps1'
- template: Templates/step-generate-doc-links.yaml

- template: Templates/step-copy-native-libraries-near-csproj.yaml

Expand Down

0 comments on commit a1a388a

Please sign in to comment.