Update azure-pipelines-package.yml

This commit is contained in:
David 2021-01-05 23:01:46 +01:00 committed by GitHub
parent f154c0dfad
commit 989c6dcffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ jobs:
variables:
- name: JellyfinVersion
value: 0.0.0
value: $[replace(variables['Build.SourceBranch'],'refs/tags/v','')]
steps:
- task: UseDotNet@2
@ -204,10 +204,6 @@ jobs:
packageType: 'sdk'
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
displayName: 'Build Stable Nuget packages'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')