2020-07-18 01:15:08 -04: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-21 22:42:48 -04:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Create clean addon directory'
|
|
|
|
inputs:
|
|
|
|
sourceFolder: 'jellyfin-kodi'
|
2020-08-22 17:59:44 -04:00
|
|
|
cleanTargetFolder: true
|
2020-08-21 22:42:48 -04:00
|
|
|
contents: |
|
|
|
|
**/*
|
2020-09-12 20:03:23 -04:00
|
|
|
!.ci/*
|
|
|
|
!.config/*
|
|
|
|
!.git/**/*
|
|
|
|
!.github/*
|
2020-08-21 22:42:48 -04:00
|
|
|
TargetFolder: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
|
|
|
|
2020-08-07 10:54:55 -04:00
|
|
|
- task: ArchiveFiles@2
|
2020-07-18 01:15:08 -04:00
|
|
|
displayName: 'Create ${{ py_version }} zip file'
|
2020-08-07 10:54:55 -04:00
|
|
|
inputs:
|
2020-08-21 22:42:48 -04:00
|
|
|
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
2020-09-12 20:03:23 -04:00
|
|
|
includeRootFolder: True
|
2020-08-07 10:54:55 -04:00
|
|
|
archiveType: 'zip'
|
|
|
|
tarCompression: 'none'
|
2020-08-13 09:10:03 -04:00
|
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin-${{ py_version }}.zip'
|
2020-07-18 01:15:08 -04:00
|
|
|
|
2020-08-13 09:51:28 -04:00
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
displayName: 'Publish ${{ py_version }} artifact'
|
|
|
|
inputs:
|
2020-08-21 22:42:48 -04:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin'
|
2020-08-21 18:55:22 -04:00
|
|
|
artifactName: 'plugin.video.jellyfin-${{ py_version }}-$(Build.BuildNumber)'
|
2020-08-13 09:51:28 -04:00
|
|
|
|