Skip to content

Commit

Permalink
Update archetype-net-release.yml and copy-docs-to-blobstorage.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Sep 16, 2020
1 parent 372239a commit 162d755
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
5 changes: 4 additions & 1 deletion eng/common/scripts/copy-docs-to-blobstorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ if ($Language -eq "dotnet")
Write-Host "DocDir $($BinDirectory)/docstoupload"
Write-Host "PkgName $($pkgName)"
Write-Host "DocVersion $($version)"
Upload-Blobs -DocDir "$($BinDirectory)/docstoupload" -PkgName $pkgName -DocVersion $version
New-Item -ItemType directory -Path "$BinDirectory/publicartifactscopy"
Copy-Item -Path "$PublicArtifactLocation/*.nupkg" -Destination "$BinDirectory/publicartifactscopy" -Exclude '*.symbols.nupkg'
$releaseTag = RetrieveReleaseTag "Nuget" "$BinDirectory/publicartifactscopy"
Upload-Blobs -DocDir "$($BinDirectory)/docstoupload" -PkgName $pkgName -DocVersion $version -ReleaseTag $releaseTag
}

if ($Language -eq "python")
Expand Down
8 changes: 6 additions & 2 deletions eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ stages:
displayName: 'Upload Symbols for ${{artifact.name}}'
inputs:
solution: '$(AzureSDKBuildToolsPath)/tools/symboltool/SymbolUploader.proj'
msbuildArguments: '/p:PackagesPath=$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}} /p:MSPublicSymbolsPAT=$(azuresdk-microsoftpublicsymbols-devops-pat) /p:MSSymbolsPAT=$(azuresdk-microsoft-devops-pat) /p:AzureSDKSymbolsPAT=$(azuresdk-azure-sdk-devops-pat)'
msbuildArguments: >-
/p:PackagesPath=$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}
/p:MSPublicSymbolsPAT=$(azuresdk-microsoftpublicsymbols-devops-pat)
/p:MSSymbolsPAT=$(azuresdk-microsoft-devops-pat)
/p:AzureSDKSymbolsPAT=$(azuresdk-azure-sdk-devops-pat)
- ${{if ne(artifact.skipPublishDocMs, 'true')}}:
- deployment: PublicDocsMS
Expand Down Expand Up @@ -177,7 +181,7 @@ stages:
BlobSASKey: '$(azure-sdk-docs-prod-sas)'
BlobName: '$(azure-sdk-docs-prod-blob-name)'
TargetLanguage: 'dotnet'
ArtifactLocation: '$(Pipeline.Workspace)/${{artifact.safeName}}/packages'
ArtifactLocation: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}'
# we override the regular script path because we have cloned the build tools repo as a separate artifact.
ScriptPath: 'eng/common/scripts/copy-docs-to-blobstorage.ps1'

Expand Down
21 changes: 15 additions & 6 deletions eng/pipelines/templates/steps/archetype-sdk-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ steps:
displayName: Download and Extract Required Software
- ${{ each artifact in parameters.Artifacts }}:
- pwsh: |
$(Build.SourcesDirectory)/doc/ApiDocGeneration/Generate-Api-Docs.ps1 -ArtifactName '${{artifact.name}}' -ServiceDirectory '${{parameters.ServiceDirectory}}' `
-ArtifactsDirectoryName '${{artifact.directoryName}}' `
-LibType '${{parameters.LibType}}' -RepoRoot $(Build.SourcesDirectory) -BinDirectory $(Build.BinariesDirectory) -DocGenDir ${{parameters.DocGenerationDir}} `
-ArtifactStagingDirectory '$(Build.ArtifactStagingDirectory)' -verbose
displayName: Build DocFx Documenttion Site for ${{artifact.name}}
- task: PowerShell@2
displayName: Build DocFx Documenttion Site for ${{artifact.name}}
inputs:
pwsh: true
filePath: $(Build.SourcesDirectory)/doc/ApiDocGeneration/Generate-Api-Docs.ps1
arguments: >
-ArtifactName '${{artifact.name}}'
-ServiceDirectory '${{parameters.ServiceDirectory}}'
-ArtifactsDirectoryName '${{artifact.directoryName}}'
-LibType '${{parameters.LibType}}'
-RepoRoot $(Build.SourcesDirectory)
-BinDirectory $(Build.BinariesDirectory)
-DocGenDir ${{parameters.DocGenerationDir}}
-ArtifactStagingDirectory '$(Build.ArtifactStagingDirectory)'
-verbose
3 changes: 3 additions & 0 deletions sdk/template/Azure.Template/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Release History
## 1.0.3-beta.12 (2020-09-11)
- Package Artifacts directory restructure, attempt 2

## 1.0.3-beta.11 (2020-09-10)
- Package Artifacts directory restructure

Expand Down
2 changes: 1 addition & 1 deletion sdk/template/Azure.Template/src/Azure.Template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Description>This is a template project to demonstrate how to create a package that uses code generation as well as use for testing our build and release pipelines</Description>
<AssemblyTitle>Azure SDK Template</AssemblyTitle>
<Version>1.0.3-beta.11</Version>
<Version>1.0.3-beta.12</Version>
<PackageTags>Azure Template</PackageTags>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
</PropertyGroup>
Expand Down

0 comments on commit 162d755

Please sign in to comment.