You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# See https://dev.to/kkazala/azure-devops-pipelines-shallow-fetch-1-is-now-default-4656 for more details.
9
+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops&tabs=yaml#shallow-fetch for more details.
10
+
- name: Agent.Source.Git.ShallowFetchDepth
11
+
value: 0
12
+
13
+
- name: NUGET_VERSION
14
+
value: 6.14.0
15
+
- name: windowsHostedAgentImage
16
+
value: 'windows-2025'
17
+
- name: ArtifactName
18
+
value: Packages
19
+
- name: SolutionFileName
20
+
value: DeviceCore.sln
21
+
- name: IsReleaseBranch # Should this branch name use the release stage.
- name: PackageOutputPath # Path where NuGet packages will be copied to.
41
+
value: $(Build.ArtifactStagingDirectory)
42
+
43
+
workspace:
44
+
clean: all # Cleanup the workspace before starting.
45
+
46
+
steps:
47
+
- checkout: self
48
+
fetchDepth: 0
49
+
50
+
- template: stage-build.yml
51
+
52
+
- stage: Release
53
+
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['IsReleaseBranch'], 'true')) # Only release when the build is not for a Pull Request and branch name fits.
54
+
jobs:
55
+
- job: Publish_NuGet_External
56
+
57
+
pool:
58
+
vmImage: $(windowsHostedAgentImage)
59
+
60
+
workspace:
61
+
clean: all # Cleanup the workspace before starting.
no-bump-message: "^(ci)(\\([\\w\\s-]*\\))?:"# You can use the "ci" type to avoid bumping the version when your changes are limited to the build or .github folders.
0 commit comments