Skip to content

Commit 35f6444

Browse files
committed
Work CI-CD
- Rework yaml style. - Migrated VM to windows-latest. - Remove install step for nbgv.
1 parent 13aa458 commit 35f6444

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

azure-pipelines.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
trigger:
22
branches:
3-
include: [main, develop, "release-*" ]
3+
include:
4+
- main
5+
- develop
6+
- release-*
47
paths:
5-
exclude: [README.md, README.zh-cn.md, CHANGELOG.md, CODE_OF_CONDUCT.md, LICENSE.md, NuGet.Config, .github_changelog_generator, .gitignore]
8+
exclude:
9+
- README.md
10+
- README.zh-cn.md
11+
- CHANGELOG.md
12+
- CODE_OF_CONDUCT.md
13+
- LICENSE.md
14+
- NuGet.Config
15+
- .github_changelog_generator
16+
- .gitignore
17+
- assets/*
18+
- config/*
619
tags:
720
include:
8-
- refs/tags/v*
21+
- refs/tags/v*
922

1023
# PR always trigger build
1124
pr:
@@ -24,7 +37,7 @@ jobs:
2437
##############################
2538
- job: Check_Build_Options
2639
pool:
27-
vmImage: 'windows-2019'
40+
vmImage: 'windows-latest'
2841

2942
steps:
3043

@@ -77,21 +90,6 @@ jobs:
7790
name: BuildOptions
7891
displayName: Evaluate build options
7992
80-
- task: DotNetCoreCLI@2
81-
displayName: Install NBGV tool
82-
condition: >-
83-
and(
84-
eq( variables['StartReleaseCandidate'], false),
85-
or(
86-
eq(variables['StartReleaseCandidate'], true),
87-
ne(variables['system.pullrequest.isfork'], true)
88-
)
89-
)
90-
inputs:
91-
command: custom
92-
custom: tool
93-
arguments: install -g nbgv
94-
9593
- task: PowerShell@2
9694
condition: eq( variables['StartReleaseCandidate'], true)
9795
displayName: NBGV prepare release

0 commit comments

Comments
 (0)