2020-08-22 02:42:48 +00:00
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- '*'
|
2020-07-18 05:15:08 +00:00
|
|
|
|
|
|
|
steps:
|
2020-08-22 02:42:48 +00:00
|
|
|
# On every PR, build the addon and make it available for download as an artifact
|
2020-07-18 05:15:08 +00:00
|
|
|
- template: build.yml
|
|
|
|
parameters:
|
|
|
|
py_versions: [ 'py2', 'py3' ]
|
2020-08-22 02:42:48 +00:00
|
|
|
|
|
|
|
# When triggered by a tag, publish the built addon to the repo server
|
|
|
|
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags') }}:
|
|
|
|
- template: publish.yml
|
|
|
|
parameters:
|
|
|
|
py_versions: [ 'py2', 'py3' ]
|