update pipeline to build develop

This commit is contained in:
RaidMax 2023-06-04 11:09:51 -05:00
parent 3f0bdfe3a9
commit eb8ea5e222

View File

@ -6,6 +6,7 @@ trigger:
include:
- release/pre
- master
- develop
pr: none
@ -20,6 +21,8 @@ variables:
buildConfiguration: Stable
isPreRelease: false
jobs:
- job: Build
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 6 SDK'
@ -117,7 +120,8 @@ steps:
script: 'wget https://raidmax.org/downloads/dos2unix.exe'
failOnStderr: true
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
- job: Transform
steps:
- task: CmdLine@2
displayName: 'Convert Linux start script line endings'
inputs:
@ -156,7 +160,8 @@ steps:
script: 'echo d | xcopy /s /y /f GameFiles $(outputFolder)\GameFiles'
workingDirectory: '$(Build.Repository.LocalPath)'
failOnStderr: true
- job: Artifact
steps:
- task: ArchiveFiles@2
displayName: 'Generate final zip file'
inputs:
@ -171,6 +176,16 @@ steps:
targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
artifact: 'IW4MAdmin-$(Build.BuildNumber).zip'
- task: PublishPipelineArtifact@1
displayName: 'Publish artifact for analysis'
inputs:
targetPath: '$(outputFolder)'
artifact: 'IW4MAdmin.$(buildConfiguration)'
publishLocation: 'pipeline'
- job: Publish
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/develop'))
steps:
- task: FtpUpload@2
displayName: 'Upload zip file to website'
inputs:
@ -237,10 +252,3 @@ steps:
}
Invoke-RestMethod @params
- task: PublishPipelineArtifact@1
displayName: 'Publish artifact for analysis'
inputs:
targetPath: '$(outputFolder)'
artifact: 'IW4MAdmin.$(buildConfiguration)'
publishLocation: 'pipeline'