Created
November 29, 2018 16:23
-
-
Save mmierzwa/9f4ae666760f3c9abc619213f712b1cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: $(Date:yyyyMMdd).dev$(Rev:.r) | |
variables: | |
SolutionFileName: 'Please change the solution name.sln' | |
SolutionName: 'Please change the solution name' | |
MSBuildPath: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe' | |
UnityPath: 'C:\Program Files\Unity\Hub\Editor\2017.4.14f1\Editor\Unity.exe' | |
trigger: | |
branches: | |
include: | |
- develop | |
pool: | |
demands: | |
- Unity | |
- Agent.OS -equals Windows_NT | |
steps: | |
- script: $(Build.SourcesDirectory)\BuildScripts\devBuild.bat $(Build.BinariesDirectory)\App $(Build.SourcesDirectory) "$(SolutionFileName)" "$(MSBuildPath)" "$(UnityPath)" | |
displayName: Build Unity project | |
failOnStderr: true | |
- script: type $(Build.SourcesDirectory)\unityBuild.log | |
displayName: Display Unity build log | |
failOnStderr: false | |
condition: succeededOrFailed() | |
- task: ArchiveFiles@2 | |
displayName: Create app package | |
inputs: | |
rootFolderOrFile: '$(Build.BinariesDirectory)/App/$(SolutionName)/AppPackages/' | |
includeRootFolder: false | |
archiveType: 'zip' | |
archiveFile: '$(Build.ArtifactStagingDirectory)/$(SolutionName)-$(Build.BuildId).zip' | |
replaceExistingArchive: true | |
- task: PublishBuildArtifacts@1 | |
displayName: Publish artifacts | |
inputs: | |
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | |
artifactName: AppPackage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment