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

Implementation of Azure Pipelines for building *.WGT files and releasing them to Github #17

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
CI trigger on anything, but only publish on git tags
  • Loading branch information
robinkruyt committed Apr 21, 2020
commit aa19c5e66954270c9bc2c771b48b555bac7fa161
31 changes: 29 additions & 2 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@

trigger:
batch: true
branches:
include:
- '*'
tags:
include:
- '*'

pr:
branches:
include:
- refs/tags/*
- '*'

jobs:
- job: build
Expand Down Expand Up @@ -82,6 +92,23 @@ jobs:
TargetFolder: '$(Build.ArtifactStagingDirectory)'
OverWrite: true

- task: PublishPipelineArtifact@1
displayName: 'Publish Release'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/*.wgt'
artifactName: 'jellyfin-tizen-debug'

- job: deploy
displayName: Deploy
dependsOn: build
condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
pool:
vmImage: "ubuntu-latest"
steps:
- task: DownloadPipelineArtifact@2
inputs:
artifact: jellyfin-tizen-debug

- task: GitHubRelease@1
displayName: Creating Github Release
inputs:
Expand All @@ -91,5 +118,5 @@ jobs:
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: 'v[0-9]*\S*'
assets: '$(Build.ArtifactStagingDirectory)/*.wgt'
assets: 'jellyfin-tizen-debug/*.wgt'
addChangeLog: false