diff options
Diffstat (limited to 'azure-pipelines/release-pypi.yml')
-rw-r--r-- | azure-pipelines/release-pypi.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/azure-pipelines/release-pypi.yml b/azure-pipelines/release-pypi.yml new file mode 100644 index 0000000..37df592 --- /dev/null +++ b/azure-pipelines/release-pypi.yml @@ -0,0 +1,35 @@ +trigger: none +pr: none + +resources: + repositories: + - repository: templates + type: github + name: microsoft/vscode-engineering + ref: main + endpoint: Monaco + +parameters: + - name: publishPackage + displayName: 🚀 Publish Package + type: boolean + default: false + +extends: + template: azure-pipelines/pypi-package/pipeline.yml@templates + parameters: + publishPackage: ${{ parameters.publishPackage }} + pythonVersion: '3.7' + # We don't ship any built in packages. + generateNotice: false + pyProjectTomlPath: $(Build.SourcesDirectory)/packages/python/pyproject.toml + buildSteps: + - script: python -m pip install nox + displayName: Install nox + + - script: python -m nox --session build + displayName: Build package (sdist and wheels) + + - publish: $(Build.SourcesDirectory)/packages/python/dist + artifact: dist + displayName: 🚛 Publish artifact |