summaryrefslogtreecommitdiffstats
path: root/azure-pipelines/release-pypi.yml
blob: 37df592bf7aa5eb06422018e76c01599538a5682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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