microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
72dee098c266c94981af7117ef9b79fe083eca61

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.azdo/ci.yaml

48lines · modecode

1pr:
2 branches:
3 include:
4 - main
5 - release/*
6 paths:
7 exclude:
8 - core/**
9
10
11pool:
12 vmImage: 'ubuntu-22.04'
13
14stages:
15- stage: Build_Test_Pack
16 jobs:
17 - job: BuildTestPack
18 displayName: 'Build, Test, and Pack'
19 steps:
20
21 - task: UseDotNet@2
22 displayName: 'Use .NET 9'
23 inputs:
24 packageType: 'sdk'
25 version: '9.0.x'
26
27 - script: dotnet restore
28 displayName: 'Restore'
29
30 - script: dotnet build --no-restore --configuration Release
31 displayName: 'Build'
32
33 - script: dotnet test --no-build --configuration Release
34 displayName: 'Test'
35
36 - script: dotnet pack --no-build -o $(Build.ArtifactStagingDirectory) /p:SymbolPackageFormat=snupkg --configuration Release
37 displayName: 'Pack'
38
39 - task: NuGetCommand@2
40 displayName: 'Push NuGet Packages'
41 condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
42 inputs:
43 command: push
44 packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
45 nuGetFeedType: internal
46 publishVstsFeed: '$(System.TeamProject)/TeamsSDKPreviews'
47
48