Skip to content

Commit 8cf46f2

Browse files
Publish GA packages to dev feed (#11341)
* Publish packages to dev feed * Promote job variable to pipeline parameter
1 parent 658767a commit 8cf46f2

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ parameters:
33
ArtifactName: 'not-specified'
44
DependsOn: Build
55
DocArtifact: 'documentation'
6+
DevFeedName: public/azure-sdk-for-python
67

78
stages:
89
- ${{if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'))}}:
@@ -82,6 +83,11 @@ stages:
8283
inputs:
8384
pythonUploadServiceConnection: 'pypi.org - azure-sdk'
8485

86+
- task: TwineAuthenticate@0
87+
displayName: 'Authenticate to feed: ${{parameters.DevFeedName}}'
88+
inputs:
89+
artifactFeeds: ${{parameters.DevFeedName}}
90+
8591
- script: |
8692
set -e
8793
twine upload --repository 'pypi' --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.whl
@@ -90,6 +96,14 @@ stages:
9096
echo "Uploaded zip to pypi"
9197
displayName: 'Publish package to registry: pypi.org'
9298
99+
- script: |
100+
set -e
101+
twine upload --repository ${{parameters.DevFeedName}} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.whl
102+
echo "Uploaded whl to devops feed"
103+
twine upload --repository ${{parameters.DevFeedName}} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.zip
104+
echo "Uploaded sdist to devops feed"
105+
displayName: 'Publish package to feed: ${{parameters.DevFeedName}}'
106+
93107
- ${{if ne(artifact.options.skipPublishDocs, 'true')}}:
94108
- deployment: PublishDocs
95109
displayName: Publish Docs to GitHubIO Blob Storage
@@ -161,8 +175,6 @@ stages:
161175
- job: PublishPackages
162176
displayName: "Publish package to daily feed"
163177
condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal')))
164-
variables:
165-
devFeedName: public/azure-sdk-for-python
166178
pool:
167179
vmImage: ubuntu-18.04
168180
steps:
@@ -177,9 +189,9 @@ stages:
177189
displayName: Install Twine
178190
179191
- task: TwineAuthenticate@0
180-
displayName: 'Authenticate to feed: $(devFeedName)'
192+
displayName: 'Authenticate to feed: ${{parameters.DevFeedName}}'
181193
inputs:
182-
artifactFeeds: $(devFeedName)
194+
artifactFeeds: ${{parameters.DevFeedName}}
183195

184196
- ${{ each artifact in parameters.Artifacts }}:
185197

@@ -196,9 +208,9 @@ stages:
196208
197209
- script: |
198210
set -e
199-
twine upload --repository $(devFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.whl
211+
twine upload --repository ${{parameters.DevFeedName}} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.whl
200212
echo "Uploaded whl to devops feed"
201-
twine upload --repository $(devFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.zip
213+
twine upload --repository ${{parameters.DevFeedName}} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.zip
202214
echo "Uploaded sdist to devops feed"
203-
displayName: 'Publish package to feed: $(devFeedName)'
215+
displayName: 'Publish package to feed: ${{parameters.DevFeedName}}'
204216
condition: gt(variables['FilesToUploadCount'], 0)

sdk/template/azure-template/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Release History
2-
2+
## 0.0.3 (Unreleased)
33

44
## 0.0.2 (2020-03-24)
55
- Test Release Pipeline
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# matches SEMVER
2-
VERSION = "0.0.2"
2+
VERSION = "0.0.3"

0 commit comments

Comments
 (0)