|
|
@ -193,6 +193,10 @@ jobs:
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
- name: JellyfinVersion
|
|
|
|
|
|
|
|
value: 0.0.0
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Use .NET 5.0 sdk'
|
|
|
|
displayName: 'Use .NET 5.0 sdk'
|
|
|
@ -200,13 +204,23 @@ jobs:
|
|
|
|
packageType: 'sdk'
|
|
|
|
packageType: 'sdk'
|
|
|
|
version: '5.0.x'
|
|
|
|
version: '5.0.x'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- script: echo "##vso[task.setvariable variable=JellyfinVersion]$( awk -F '/' '{ print $NF }' <<<'$(Build.SourceBranch)' | sed 's/^v//' )"
|
|
|
|
|
|
|
|
displayName: Set release version (stable)
|
|
|
|
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
|
|
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: 'Build Stable Nuget packages'
|
|
|
|
displayName: 'Build Stable Nuget packages'
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
command: 'pack'
|
|
|
|
command: 'custom'
|
|
|
|
packagesToPack: 'Jellyfin.Data/Jellyfin.Data.csproj;MediaBrowser.Common/MediaBrowser.Common.csproj;MediaBrowser.Controller/MediaBrowser.Controller.csproj;MediaBrowser.Model/MediaBrowser.Model.csproj;Emby.Naming/Emby.Naming.csproj'
|
|
|
|
projects: |
|
|
|
|
versioningScheme: 'off'
|
|
|
|
Jellyfin.Data/Jellyfin.Data.csproj
|
|
|
|
|
|
|
|
MediaBrowser.Common/MediaBrowser.Common.csproj
|
|
|
|
|
|
|
|
MediaBrowser.Controller/MediaBrowser.Controller.csproj
|
|
|
|
|
|
|
|
MediaBrowser.Model/MediaBrowser.Model.csproj
|
|
|
|
|
|
|
|
Emby.Naming/Emby.Naming.csproj
|
|
|
|
|
|
|
|
custom: 'pack'
|
|
|
|
|
|
|
|
arguments: -o $(Build.ArtifactStagingDirectory) -p:Version=$(JellyfinVersion)
|
|
|
|
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: 'Build Unstable Nuget packages'
|
|
|
|
displayName: 'Build Unstable Nuget packages'
|
|
|
@ -233,7 +247,7 @@ jobs:
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
command: 'push'
|
|
|
|
command: 'push'
|
|
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;$(Build.ArtifactStagingDirectory)/**/*.snupkg'
|
|
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
|
|
|
|
nuGetFeedType: 'external'
|
|
|
|
nuGetFeedType: 'external'
|
|
|
|
publishFeedCredentials: 'NugetOrg'
|
|
|
|
publishFeedCredentials: 'NugetOrg'
|
|
|
|
allowPackageConflicts: true # This ignores an error if the version already exists
|
|
|
|
allowPackageConflicts: true # This ignores an error if the version already exists
|
|
|
|