| 1 | steps: |
| 2 | - script: 'pip install --upgrade .' |
| 3 | displayName: 'Install Azure DevOps CLI extension' |
| 4 | workingDirectory: 'azure-devops/' |
| 5 | |
| 6 | - task: PythonScript@0 |
| 7 | displayName: 'Remove code comments from SDK files' |
| 8 | inputs: |
| 9 | scriptSource: 'filePath' |
| 10 | scriptPath: 'scripts/removeComments.py' |
| 11 | |
| 12 | - script: 'python setup.py sdist bdist_wheel' |
| 13 | displayName: 'Build wheel for Azure DevOps CLI extension' |
| 14 | workingDirectory: 'azure-devops/' |
| 15 | |
| 16 | - task: PublishBuildArtifacts@1 |
| 17 | displayName: 'Publish Azure DevOps CLI extension as artifact' |
| 18 | inputs: |
| 19 | pathtoPublish: 'azure-devops/dist' |
| 20 | artifactName: 'azure-devops-cli-extension' |
| 21 | publishLocation: 'Container' |