mirror of https://github.com/Ombi-app/Ombi
parent
e45dfba6ac
commit
38c24fb9bd
@ -0,0 +1,40 @@
|
||||
|
||||
parameters:
|
||||
- name: name # defaults for any parameters that aren't specified
|
||||
default: ''
|
||||
- name: Runtime
|
||||
default: ''
|
||||
- name: OutputName
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: Publish ${{ parameters.name }}
|
||||
pool:
|
||||
vmImage: ${vmImage}
|
||||
steps:
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: publish $(parameters.name)
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(BuildConfiguration) -r "$(parameters.Runtime)" -o $(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
||||
zipAfterPublish: false
|
||||
modifyOutputPath: false
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Angular App $(parameters.name)'
|
||||
inputs:
|
||||
SourceFolder: '$(UILocation)dist'
|
||||
Contents: '**'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)/ClientApp/dist'
|
||||
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip $(parameters.name)
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)'
|
||||
includeRootFolder: false
|
||||
archiveType: 'zip'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/$(parameters.OutputName)-$(Build.BuildId).zip'
|
||||
replaceExistingArchive: true
|
@ -0,0 +1,56 @@
|
||||
|
||||
jobs:
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'Win10-x64'
|
||||
Runtime: win10-x64
|
||||
OutputName: win-64
|
||||
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'Win10-x86'
|
||||
Runtime: win10-x86
|
||||
OutputName: win-86
|
||||
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'OSX-x64'
|
||||
Runtime: osx-x64
|
||||
OutputName: osx-64
|
||||
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'Linux-x64'
|
||||
Runtime: linux-x64
|
||||
OutputName: linux-64
|
||||
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'Linux-ARM'
|
||||
Runtime: linux-arm
|
||||
OutputName: linux-arm
|
||||
|
||||
- template: publish-os-steps.yml
|
||||
parameters:
|
||||
name: 'Linux-ARM-x64'
|
||||
Runtime: linux-arm64
|
||||
OutputName: linux-arm64
|
||||
|
||||
|
||||
# - task: GitHubRelease@1
|
||||
# inputs:
|
||||
# gitHubConnection: 'github.com_tidusjar'
|
||||
# repositoryName: 'tidusjar/Ombi.Releases'
|
||||
# action: 'create'
|
||||
# target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672'
|
||||
# tagSource: 'userSpecifiedTag'
|
||||
# tag: '$(gitTag)'
|
||||
# releaseNotesSource: 'inline'
|
||||
# releaseNotesInline: '$(ReleaseNotes)'
|
||||
# assets: |
|
||||
# $(Build.ArtifactStagingDirectory)/*.zip
|
||||
# $(Build.ArtifactStagingDirectory)/*.gz
|
||||
# isPreRelease: true
|
||||
# changeLogCompareToRelease: 'lastNonDraftRelease'
|
||||
# changeLogType: 'commitBased'
|
||||
# condition: and(succeeded(), eq(variables['PublishToGithub'], 'true'))
|
Loading…
Reference in new issue