jellyfin-kodi/.ci/build.yml

52 lines
1.5 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'
contents: |
**/*
!.ci
!.config
!.editorconfig
!.env
!.git
!.github
!.gitignore
!requirements-dev.txt
!tests
!tox.ini
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'
includeRootFolder: False
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