mirror of
https://github.com/jellyfin/jellyfin-uwp.git
synced 2024-11-27 00:00:33 +00:00
Delete .ci directory
This commit is contained in:
parent
0b5a75d3c0
commit
412fabdfe6
@ -1,103 +0,0 @@
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
tags:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
variables:
|
||||
Solution: '**/*.sln'
|
||||
BuildPlatform: 'x86|x64|ARM|ARM64'
|
||||
BuildConfiguration: 'Release'
|
||||
AppxDirectory: '$(Build.ArtifactStagingDirectory)/AppxPackages'
|
||||
|
||||
jobs:
|
||||
- job: Build
|
||||
displayName: 'Build'
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
|
||||
steps:
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: 'Install Nuget'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: 'Restore Dependencies'
|
||||
inputs:
|
||||
restoreSolution: '$(Solution)'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build Client'
|
||||
inputs:
|
||||
solution: '$(Solution)'
|
||||
configuration: '$(BuildConfiguration)'
|
||||
msbuildArgs: '/p:AppxBundlePlatforms="$(BuildPlatform)" /p:AppxPackageDir="$(AppxDirectory)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Client'
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
ArtifactName: 'jellyfin-uwp'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- job: Publish
|
||||
displayName: 'Publish'
|
||||
|
||||
dependsOn: Build
|
||||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
- script: 'echo "##vso[task.setvariable variable=TAG]$(git describe --tags)"'
|
||||
displayName: 'Set Tag Variable'
|
||||
|
||||
- task: DownloadPipelineArtifact@2
|
||||
displayName: 'Download Binary'
|
||||
inputs:
|
||||
source: 'current'
|
||||
artifact: 'jellyfin-uwp'
|
||||
path: '$(System.ArtifactsDirectory)'
|
||||
runVersion: 'latest'
|
||||
|
||||
- task: Bash@3
|
||||
displayName: 'Rename Binary'
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: 'mv *.appxupload jellyfin-uwp-${TAG}.appxupload'
|
||||
workingDirectory: '$(System.ArtifactsDirectory)/AppxPackages'
|
||||
|
||||
- task: GithubRelease@0
|
||||
displayName: 'GitHub Upload'
|
||||
inputs:
|
||||
gitHubConnection: Jellyfin Release Download
|
||||
repositoryName: jellyfin/jellyfin-uwp
|
||||
assets: '$(System.ArtifactsDirectory)/**/*.appxupload'
|
||||
action: 'edit'
|
||||
assetUploadMode: 'replace'
|
||||
tag: '$(TAG)'
|
||||
|
||||
- task: CopyFilesOverSSH@0
|
||||
displayName: 'SSH Upload'
|
||||
inputs:
|
||||
sshEndpoint: repository
|
||||
sourceFolder: '$(System.ArtifactsDirectory)'
|
||||
contents: '**/*.appxupload'
|
||||
targetFolder: '/srv/repository/releases/client/uwp/versions/$(TAG)'
|
||||
flattenFolders: true
|
||||
|
||||
- task: SSH@0
|
||||
displayName: 'SSH Symlink'
|
||||
inputs:
|
||||
sshEndpoint: repository
|
||||
runOptions: 'inline'
|
||||
inline: 'cd /srv/repository/releases/client/uwp && rm -rf *.appxupload && ln -s versions/$(TAG)/jellyfin-uwp-$(TAG).appxupload .'
|
Loading…
Reference in New Issue
Block a user