forked from biolab/orange3-bioinformatics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-release.yml
47 lines (37 loc) · 1.06 KB
/
azure-pipelines-release.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
trigger:
tags:
include:
- '*.*.*'
pr: none
jobs:
- job: release
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Python37:
python.version: '3.7'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
python -m pip install --upgrade pip setuptools wheel twine
displayName: 'Install requirements'
- script: pip install .[doc]
displayName: 'Install Orange3-bioinformatics'
- script: cd doc && make htmlhelp && cd ..
displayName: 'Build docs'
continueOnError: false
- script: python setup.py sdist bdist_wheel
displayName: 'Build dist distribution files'
continueOnError: false
- task: CopyFiles@2
condition: eq(variables['Agent.JobStatus'], 'Succeeded')
inputs:
contents: dist/**
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
condition: eq(variables['Agent.JobStatus'], 'Succeeded')
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)