2020-07-18 05:15:08 +00:00
|
|
|
parameters:
|
|
|
|
python_versions : []
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- ${{ each py_version in parameters.py_versions }}:
|
|
|
|
- task: usePythonVersion@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '3.6'
|
|
|
|
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
- script: python3 -m pip install --user pyyaml
|
|
|
|
displayName: 'Install PyYaml'
|
|
|
|
|
|
|
|
- script: python3 jellyfin-kodi/.config/generate_xml.py ${{ py_version }}
|
|
|
|
displayName: 'Create ${{ py_version }} addon.xml'
|
|
|
|
|
2020-08-22 02:42:48 +00:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Create clean addon directory'
|
|
|
|
inputs:
|
|
|
|
sourceFolder: 'jellyfin-kodi'
|
2020-08-22 21:59:44 +00:00
|
|
|
cleanTargetFolder: true
|
2020-08-22 02:42:48 +00:00
|
|
|
contents: |
|
|
|
|
**/*
|
2020-09-13 00:03:23 +00:00
|
|
|
!.ci/*
|
|
|
|
!.config/*
|
|
|
|
!.git/**/*
|
|
|
|
!.github/*
|
2020-08-22 02:42:48 +00:00
|
|
|
TargetFolder: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
|
|
|
|
2020-08-07 14:54:55 +00:00
|
|
|
- task: ArchiveFiles@2
|
2020-07-18 05:15:08 +00:00
|
|
|
displayName: 'Create ${{ py_version }} zip file'
|
2020-08-07 14:54:55 +00:00
|
|
|
inputs:
|
2020-08-22 02:42:48 +00:00
|
|
|
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
2020-09-13 00:03:23 +00:00
|
|
|
includeRootFolder: True
|
2020-08-07 14:54:55 +00:00
|
|
|
archiveType: 'zip'
|
|
|
|
tarCompression: 'none'
|
2020-08-13 13:10:03 +00:00
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin-${{ py_version }}.zip'
|
2020-07-18 05:15:08 +00:00
|
|
|
|
2020-08-13 13:51:28 +00:00
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
displayName: 'Publish ${{ py_version }} artifact'
|
|
|
|
inputs:
|
2020-08-22 02:42:48 +00:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
2020-08-21 22:55:22 +00:00
|
|
|
artifactName: 'plugin.video.jellyfin-${{ py_version }}-$(Build.BuildNumber)'
|
2020-08-13 13:51:28 +00:00
|
|
|
|