Skip to content

Commit 588ef3a

Browse files
committed
Update azure-pipelines with actual steps
1 parent 3a5d633 commit 588ef3a

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

azure-pipelines.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,29 @@ trigger:
99
pool:
1010
vmImage: 'Ubuntu-16.04'
1111

12+
variables:
13+
- group: Default
14+
1215
steps:
13-
- script: echo Hello, world!
14-
displayName: 'Run a one-line script'
16+
- task: Bash@3
17+
inputs:
18+
filePath: './build.sh'
19+
arguments: '--target Test'
20+
displayName: 'Run the Test target'
21+
continueOnError: false
22+
23+
- task: CopyFiles@2
24+
inputs:
25+
SourceFolder: 'output'
26+
Contents: '*.nupkg'
27+
TargetFolder: '$(Build.ArtifactStagingDirectory)'
28+
29+
- task: PublishBuildArtifacts@1
30+
inputs:
31+
ArtifactName: 'NuGet Package'
1532

16-
- script: |
17-
echo Add other tasks to build, test, and deploy your project.
18-
echo See https://aka.ms/yaml
19-
displayName: 'Run a multi-line script'
33+
- task: Bash@3
34+
inputs:
35+
filePath: './build.sh'
36+
arguments: '--target Publish --nuget-api-key $(NUGETAPIKEY)'
37+
displayName: 'Run the Publish target'

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Build : NukeBuild
9292
{
9393
if (!IsLocalBuild && string.IsNullOrEmpty(NugetApiKey))
9494
{
95-
Logger.Warn("NuGet API key was not provided. Unable to push NuGet package.");
95+
Logger.Error("NuGet API key was not provided. Unable to push NuGet package.");
9696
return;
9797
}
9898

0 commit comments

Comments
 (0)