mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Add conditions and use ArchiveFile task
This commit is contained in:
parent
54d9187e77
commit
1f5901d2ba
1 changed files with 11 additions and 6 deletions
|
@ -16,23 +16,28 @@ steps:
|
||||||
- script: python3 jellyfin-kodi/.config/generate_xml.py ${{ py_version }}
|
- script: python3 jellyfin-kodi/.config/generate_xml.py ${{ py_version }}
|
||||||
displayName: 'Create ${{ py_version }} addon.xml'
|
displayName: 'Create ${{ py_version }} addon.xml'
|
||||||
|
|
||||||
- script: zip -r plugin.video.jellyfin-${{ py_version }}.zip jellyfin-kodi
|
- task: ArchiveFiles@2
|
||||||
displayName: 'Create ${{ py_version }} zip file'
|
displayName: 'Create ${{ py_version }} zip file'
|
||||||
|
inputs:
|
||||||
- script: ls .
|
rootFolderOrFile: jellyfin-kodi
|
||||||
displayName: 'home dir 2'
|
includeRootFolder: False
|
||||||
|
archiveType: 'zip'
|
||||||
|
tarCompression: 'none'
|
||||||
|
archiveFile: 'plugin.video.jellyfin-${{ py_version }}.zip'
|
||||||
|
|
||||||
- task: CopyFilesOverSSH@0
|
- task: CopyFilesOverSSH@0
|
||||||
displayName: 'Upload to repo server'
|
displayName: 'Upload to repo server'
|
||||||
inputs:
|
inputs:
|
||||||
sshEndpoint: repository
|
sshEndpoint: repository
|
||||||
sourceFolder: '${Agent.BuildDirectory}'
|
sourceFolder: '${Agent.BuildDirectory}'
|
||||||
contents: 'plugin.video.jellyfin*'
|
contents: 'plugin.video.jellyfin-${{ py-version }}.zip'
|
||||||
targetFolder: '/srv/repository/incoming/kodi'
|
targetFolder: '/srv/repository/incoming/kodi'
|
||||||
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
|
||||||
|
|
||||||
- task: SSH@0
|
- task: SSH@0
|
||||||
displayName: 'Add to Kodi repo'
|
displayName: 'Add to Kodi repo'
|
||||||
inputs:
|
inputs:
|
||||||
sshEndpoint: repository
|
sshEndpoint: repository
|
||||||
runOptions: 'inline'
|
runOptions: 'inline'
|
||||||
inline: 'python3 /usr/local/bin/kodirepo add /srv/repository/incoming/kodi/plugin.video.jellyfin-version-${ py_version } --datadir /srv/repository/releases/client/kodi/${ py_version }'
|
inline: 'python3 /usr/local/bin/kodirepo add /srv/repository/incoming/kodi/plugin.video.jellyfin-${{ py_version }} --datadir /srv/repository/releases/client/kodi/${{ py_version }}'
|
||||||
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
|
||||||
|
|
Loading…
Reference in a new issue