Skip to content

Commit 48a7fbb

Browse files
authored
Set presteps in auto-release-prepare stage (#48051)
1 parent 7468dea commit 48a7fbb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

eng/pipelines/templates/stages/archetype-python-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ stages:
3232
- ${{ parameters.DependsOn }}
3333
Artifacts: ${{ parameters.Artifacts }}
3434
Condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-python-pr'))
35+
# Package detection installs azure-sdk-tools; set up Python and authenticate pip/uv to the
36+
# internal feed first so the install does not fall back to (firewalled) public PyPI.
37+
PreSteps:
38+
- task: UsePythonVersion@0
39+
inputs:
40+
versionSpec: '3.12'
41+
- template: /eng/pipelines/templates/steps/auth-dev-feed.yml
42+
parameters:
43+
DevFeedName: ${{ parameters.DevFeedName }}
44+
EnableTwineAuth: false
45+
EnablePipAuth: true
46+
EnableUvAuth: true
3547

3648
- ${{ each artifact in parameters.Artifacts }}:
3749
- stage: 'Release_${{artifact.safename}}'

0 commit comments

Comments
 (0)