From 7ea3452c7a435f829e992a8331e1d1b5a42841bb Mon Sep 17 00:00:00 2001 From: evolvesecsvc <63012892+evolvesecsvc@users.noreply.github.com> Date: Fri, 3 Apr 2020 15:24:56 -0500 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..81abb1a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,47 @@ +# .NET Desktop + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: 'SafetyKatz.sln' + arch: 'x64' + conf: 'Release' + s3path: '/SafetyKatz35.exe' + outpath: 'SafetyKatz/bin/Release/SafetyKatz.exe' + s3helperurl: 'https://github.com/3lpsy/s3upload/releases/download/0.0.1/s3upload-windows-amd64' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: MSBuild@1 + inputs: + solution: '$(solution)' + configuration: 'Release' + msbuildArchitecture: '$(arch)' + clean: true + +- task: PowerShell@2 + inputs: + targetType: 'inline' + script: '(New-Object Net.WebClient).DownloadFile("$(s3helperurl)", "$(Build.SourcesDirectory)/s3upload.exe")' + failOnStderr: true + workingDirectory: '$(Build.SourcesDirectory)' + +- task: PowerShell@2 + inputs: + targetType: 'inline' + script: '$(Build.SourcesDirectory)/s3upload.exe -source $(Build.SourcesDirectory)/$(outpath) -destination $(s3path)' + failOnStderr: true + env: + AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID) + AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY) + AWS_BUCKET: $(AWS_BUCKET) +