|
|
@ -193,6 +193,10 @@ jobs:
|
|
|
|
pool:
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
- name: JellyfinVersion
|
|
|
|
|
|
|
|
value: $[replace(variables['Build.SourceBranch'],'refs/tags/v','')]
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Use .NET 5.0 sdk'
|
|
|
|
displayName: 'Use .NET 5.0 sdk'
|
|
|
@ -204,9 +208,15 @@ jobs:
|
|
|
|
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 +243,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
|
|
|
|