Skip to content

Commit 06a8714

Browse files
committed
Push packages to PyPi automatically
1 parent fd61b23 commit 06a8714

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

eng/templates/build.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,24 @@ jobs:
3939
inputs:
4040
SourceFolder: dist
4141
Contents: '**'
42-
TargetFolder: $(Build.ArtifactStagingDirectory)
42+
TargetFolder: $(Build.ArtifactStagingDirectory)
43+
44+
- task: ManualValidation@1
45+
timeoutInMinutes: 1440 # task times out in 1 day
46+
inputs:
47+
notifyUsers: |
48+
andystaples@microsoft.com
49+
instructions: 'Approve publish of azure-functions-durable to PyPi'
50+
onTimeout: 'reject'
51+
52+
- script: |
53+
pip install wheel
54+
pip install twine
55+
56+
- task: TwineAuthenticate@1
57+
displayName: Twine Authenticate
58+
inputs:
59+
pythonUploadServiceConnection: azure-functions-durable-pypi
60+
61+
- script: |
62+
python -m twine upload --config-file $(PYPIRC_PATH) dist/*

0 commit comments

Comments
 (0)