jellyfin-kodi/.ci/build.yml

47 lines
1.4 KiB
YAML
Raw Normal View History

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'
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'
- task: ArchiveFiles@2
displayName: 'Create ${{ py_version }} zip file'
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
archiveType: 'zip'
tarCompression: 'none'
archiveFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin-${{ py_version }}.zip'
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