Skip to content

Commit 77e401f

Browse files
authored
Azure pipelines (#81)
* Set up CI with Azure Pipelines [skip ci] * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * updated azure pipelines.yml file * updated * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Updated with Azure pipelines file. * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines
1 parent df8faac commit 77e401f

File tree

2 files changed

+44
-38
lines changed

2 files changed

+44
-38
lines changed

.github/workflows/Dotnet_template.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
pr:
2+
- master
3+
trigger:
4+
branches:
5+
include:
6+
- master
7+
- refs/tags/v*
8+
pool:
9+
vmImage: ubuntu-latest
10+
11+
steps:
12+
- task: NuGetToolInstaller@1
13+
inputs:
14+
versionSpec:
15+
16+
- task: DotNetCoreCLI@2
17+
inputs:
18+
command: 'test'
19+
projects: 'Test/Test.csproj'
20+
21+
- task: NuGetCommand@2
22+
inputs:
23+
command: 'pack'
24+
packagesToPack: 'Microsoft.Azure.IoT.Edge.Module.nuspec'
25+
versioningScheme: 'off'
26+
27+
- task: PublishBuildArtifacts@1
28+
inputs:
29+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
30+
ArtifactName: 'drop'
31+
publishLocation: 'Container'
32+
33+
- task: GitHubRelease@0
34+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
35+
inputs:
36+
gitHubConnection: 'github.com_marianan'
37+
repositoryName: '$(Build.Repository.Name)'
38+
action: 'create'
39+
target: '$(Build.SourceVersion)'
40+
tagSource: 'manual'
41+
tag: '$(Build.SourceBranch)'
42+
releaseNotesSource: 'input'
43+
isPreRelease: false
44+
addChangeLog: false

0 commit comments

Comments
 (0)