|
| 1 | +# Copyright (c) .NET Foundation and Contributors |
| 2 | +# See LICENSE file in the project root for full license information. |
| 3 | + |
1 | 4 | trigger: |
2 | 5 | branches: |
3 | | - include: |
| 6 | + include: |
4 | 7 | - main |
5 | 8 | - develop |
6 | 9 | - release-* |
7 | 10 | paths: |
8 | | - exclude: |
9 | | - - README.md |
10 | | - - README.zh-cn.md |
| 11 | + exclude: |
| 12 | + - .github_changelog_generator |
| 13 | + - .gitignore |
11 | 14 | - CHANGELOG.md |
12 | 15 | - CODE_OF_CONDUCT.md |
13 | 16 | - LICENSE.md |
| 17 | + - README.md |
14 | 18 | - NuGet.Config |
15 | | - - .github_changelog_generator |
16 | | - - .gitignore |
17 | 19 | - assets/* |
18 | 20 | - config/* |
| 21 | + - .github/* |
| 22 | + |
19 | 23 | tags: |
20 | | - include: |
21 | | - - refs/tags/v* |
| 24 | + include: |
| 25 | + - v* |
22 | 26 |
|
23 | 27 | # PR always trigger build |
24 | 28 | pr: |
@@ -111,8 +115,8 @@ jobs: |
111 | 115 | git config --global user.email [email protected] |
112 | 116 | git config --global core.autocrlf true |
113 | 117 | |
114 | | - Write-Host "Checkout develop branch..." |
115 | | - git checkout --quiet develop > $null |
| 118 | + Write-Host "Checkout main branch..." |
| 119 | + git checkout --quiet main > $null |
116 | 120 |
|
117 | 121 | # prepare release and capture output |
118 | 122 | Write-Host "Prepare release with NBGV..." |
@@ -377,27 +381,6 @@ jobs: |
377 | 381 | packagesToPush: '$(Build.ArtifactStagingDirectory)\nanoFramework.Tools.FirmwareFlasher.$(NBGV_NuGetPackageVersion).nupkg' |
378 | 382 | publishFeedCredentials: 'NuGet-nanoFirmwareFlasher' |
379 | 383 |
|
380 | | - # create or update GitHub release |
381 | | - - task: GithubRelease@1 |
382 | | - condition: >- |
383 | | - and( |
384 | | - succeeded(), |
385 | | - eq(variables['System.PullRequest.PullRequestId'], ''), |
386 | | - not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')), |
387 | | - eq(variables['UPDATE_DEPENDENTS'], 'false') |
388 | | - ) |
389 | | - displayName: Create/Update GitHub PREVIEW release |
390 | | - inputs: |
391 | | - gitHubConnection: 'github.com_nano-$(System.TeamProject)' |
392 | | - tagSource: userSpecifiedTag |
393 | | - tag: v$(MY_NUGET_VERSION) |
394 | | - title: 'nano firmware flasher v$(MY_NUGET_VERSION)' |
395 | | - releaseNotesSource: inline |
396 | | - releaseNotesInline: 'add description here' |
397 | | - assets: '' |
398 | | - isPreRelease: true |
399 | | - addChangeLog: false |
400 | | - |
401 | 384 | # create or update GitHub release |
402 | 385 | - task: GithubRelease@1 |
403 | 386 | condition: >- |
|
0 commit comments