mirror of https://github.com/Qiskit/qiskit.git
41 lines
847 B
YAML
41 lines
847 B
YAML
parameters:
|
|
- name: jobName
|
|
type: string
|
|
|
|
- name: pool
|
|
type: object
|
|
|
|
- name: env
|
|
type: object
|
|
default: {}
|
|
|
|
- name: setupPython
|
|
type: stepList
|
|
default: [{task: UsePythonVersion@0}]
|
|
|
|
|
|
jobs:
|
|
- job: ${{ parameters.jobName }}
|
|
pool: ${{ parameters.pool }}
|
|
variables: ${{ parameters.env }}
|
|
|
|
steps:
|
|
- ${{ parameters.setupPython }}
|
|
|
|
- bash: |
|
|
set -e
|
|
python -m pip install --upgrade pip
|
|
pip install cibuildwheel==2.11.2
|
|
pip install -U twine
|
|
cibuildwheel --output-dir wheelhouse .
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs: {pathtoPublish: 'wheelhouse'}
|
|
condition: succeededOrFailed()
|
|
|
|
- bash: |
|
|
twine upload wheelhouse/*
|
|
env:
|
|
TWINE_USERNAME: "qiskit"
|
|
TWINE_PASSWORD: $(TWINE_PASSWORD)
|