File: auth-dev-feed.yml

package info (click to toggle)
python-azure 20260203%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 793,600 kB
  • sloc: python: 6,552,618; ansic: 804; javascript: 287; sh: 204; makefile: 198; xml: 109
file content (34 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download
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
29
30
31
32
33
34
parameters:
  DevFeedName: 'public/azure-sdk-for-python'

steps:
  - pwsh: |
      # For safety default to publishing to the private feed.
      # Publish to https://dev.azure.com/azure-sdk/internal/_packaging?_a=feed&feed=azure-sdk-for-python-pr
      $devopsFeedName = 'internal/azure-sdk-for-python-pr'
      if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-python') {
        # Publish to https://dev.azure.com/azure-sdk/public/_packaging?_a=feed&feed=azure-sdk-for-python
        $devopsFeedName = '${{ parameters.DevFeedName }}'
      }
      echo "##vso[task.setvariable variable=DevFeedName]$devopsFeedName"
      echo "Using DevopsFeed = $devopsFeedName"
    displayName: Setup DevOpsFeedName

  - task: TwineAuthenticate@0
    displayName: 'Twine Authenticate to feed'
    inputs:
      artifactFeeds: $(DevFeedName)

  - task: PipAuthenticate@1
    displayName: 'Pip Authenticate to feed'
    inputs:
      artifactFeeds: $(DevFeedName)
      onlyAddExtraIndex: false

  # disabled until completion of python part of azure/azure-sdk-tools#9101
  # - pwsh: |
  #     if ($env:PIP_INDEX_URL) {
  #       Write-Host "PIP Index URL detected: $env:PIP_INDEX_URL"
  #       Write-Host "##vso[task.setvariable variable=UV_DEFAULT_INDEX]$($env:PIP_INDEX_URL)"
  #     }
  #   displayName: 'Mirror PIP Index URL to UV Index URL'