File: upload-wheels.yml

package info (click to toggle)
nmodl 0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,016 kB
  • sloc: cpp: 28,492; javascript: 9,841; yacc: 2,804; python: 1,971; lex: 1,674; xml: 181; sh: 136; ansic: 37; makefile: 17; pascal: 7
file content (23 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNMODLPypiNightly
    condition: and(succeeded(), eq(variables.buildWheel, true))
  - script: |
      python -m pip install twine
      cat $(PYPIRC_PATH)
      python -m twine upload --verbose --skip-existing -r NMODLPypiNightly --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), eq(variables.buildWheel, true), ne(variables['UploadWheel'], false), ne(variables.ReleaseWheelBuild, true))
    displayName: 'Upload nightly wheel to pypi.org'
  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNMODLPypi
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.ReleaseWheelBuild, true))
  - script: |
      python -m pip install twine
      python -m twine upload --verbose --skip-existing -r NMODLPypi --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.ReleaseWheelBuild, true), ne(variables['UploadWheel'], false))
    displayName: 'Upload release wheel to pypi.org'