You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/.azuredevops/pipelines/publish-job.yml

61 lines
1.5 KiB

5 years ago
5 years ago
variables:
- template: templates/variables.yml
stages:
- stage: build
jobs:
- job: Build
pool:
vmImage: ${{ variables.vmImage }}
steps:
- template: templates/build-steps.yml
- stage: publish
jobs:
- job:
strategy:
matrix:
win10-x64:
runtime: win10-x64
win10-x86:
runtime: win10-x86
osx-x64:
runtime: osx-x64
linux-x64:
runtime: linux-x64
linux-arm:
runtime: linux-arm
linux-arm64:
runtime: linux-arm64
pool:
vmImage: ${{ variables.vmImage }}
steps:
- template: templates/publish-os-steps.yml
5 years ago
- stage: deploy
jobs:
- job:
steps:
5 years ago
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(System.ArtifactsDirectory)'
5 years ago
- task: GitHubRelease@1
inputs:
5 years ago
gitHubConnection: 'github.com_tidusjar'
repositoryName: 'tidusjar/Ombi.Releases'
action: 'create'
target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672'
tagSource: 'userSpecifiedTag'
tag: '$(gitTag)'
releaseNotesSource: 'inline'
releaseNotesInline: '$(ReleaseNotes)'
assets: |
5 years ago
$(System.ArtifactsDirectory)**/*.zip
$(System.ArtifactsDirectory)**/*.gz
5 years ago
isPreRelease: true
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'
condition: and(succeeded(), eq(variables['PublishToGithub'], 'true'))