File: publish-blobs.yml

package info (click to toggle)
python-azure 20251014%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 766,472 kB
  • sloc: python: 6,314,744; ansic: 804; javascript: 287; makefile: 198; sh: 198; xml: 109
file content (28 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
parameters:
  FolderForUpload: ''
  TargetLanguage: ''
  BlobName: '' # To be removed once all usages are removed in the languages
  BlobAccountName: 'https://azuresdkdocs.blob.core.windows.net'
  ScriptPath: 'eng/common/scripts/copy-docs-to-blobstorage.ps1'
  ArtifactLocation: ''
  RepoId: $(Build.Repository.Name)

steps:
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml

- task: AzurePowerShell@5
  displayName: 'Copy Docs to Blob Storage'
  continueOnError: false
  inputs:
    azureSubscription: 'Azure SDK Artifacts'
    ScriptType: 'FilePath'
    ScriptPath: ${{ parameters.ScriptPath }}
    ScriptArguments: >
      -DocLocation "${{ parameters.FolderForUpload }}"
      -BlobAccountName "${{ parameters.BlobAccountName }}"
      -PublicArtifactLocation "${{ parameters.ArtifactLocation }}"
      -RepoReplaceRegex "(https://github.com/${{ parameters.RepoId }}/(?:blob|tree)/)$(DefaultBranch)"
    azurePowerShellVersion: latestVersion
    pwsh: true
  env:
    AZCOPY_AUTO_LOGIN_TYPE: 'PSCRED'