Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Made GitHub Releases trigger on BuildCompletion and added update subm…
Browse files Browse the repository at this point in the history
…odules command.
  • Loading branch information
EraYaN committed Sep 15, 2019
1 parent 4361476 commit 4fb4366
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
submodules: true
persistCredentials: true

- task: CmdLine@2
displayName: "Update submodules"
inputs:
script: 'git submodule update --recursive --remote'
workingDirectory: '$(Build.SourcesDirectory)'

- task: PowerShell@2
displayName: "DocFX Build"
inputs:
Expand All @@ -25,7 +31,7 @@ jobs:
workingDirectory: '$(Build.SourcesDirectory)'

- task: ArchiveFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
displayName: "Package Documentation Website"
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/_site'
Expand All @@ -38,7 +44,7 @@ jobs:
#quiet: # Optional

- task: GitHubRelease@0
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
displayName: "Create GitHub release"
inputs:
gitHubConnection: Jellyfin Release Download
Expand Down

0 comments on commit 4fb4366

Please sign in to comment.