Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in setting JELLYFIN_VERSION #225

Merged
merged 2 commits into from
Nov 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 4 additions & 9 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
variables:
- group: 'jellyfin'
group: 'jellyfin'
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
JELLYFIN_VERSION: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]

trigger:
batch: true
Expand Down Expand Up @@ -42,10 +44,6 @@ jobs:
vmImage: 'ubuntu-latest'

steps:
- script: 'echo "##vso[task.setvariable variable=JELLYFIN_VERSION]$(git describe --tags)"'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
displayName: 'Set Version Variable'

nielsvanvelzen marked this conversation as resolved.
Show resolved Hide resolved
- task: Gradle@2
displayName: 'Build Debug'
inputs:
Expand Down Expand Up @@ -87,15 +85,12 @@ jobs:
displayName: 'Publish'

dependsOn: Build
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
nielsvanvelzen marked this conversation as resolved.
Show resolved Hide resolved

pool:
vmImage: 'ubuntu-latest'

steps:
- script: 'echo "##vso[task.setvariable variable=JELLYFIN_VERSION]$(git describe --tags)"'
displayName: 'Set Version Variable'

- task: DownloadPipelineArtifact@2
displayName: 'Download APKs'
inputs:
Expand Down