Skip to content

Commit 8738efe

Browse files
authored
Work CI-CD
- Update pipeline yaml fot github publish tasks. - Update github action. - Remove unnecessary repo files. ***NO_CI***
1 parent 040217b commit 8738efe

File tree

4 files changed

+5
-33
lines changed

4 files changed

+5
-33
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
GITHUB_TOKEN: ${{ github.token }}
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3030
- name: Update dependencies
3131
uses: nanoframework/nanodu@v1
3232
with:

CODE_OF_CONDUCT.md

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

CONTRIBUTING.md

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

azure-pipelines.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -85,48 +85,26 @@ steps:
8585

8686
- template: azure-pipelines-templates/class-lib-publish.yml@templates
8787

88-
# create or update GitHub release
88+
# create GitHub release from main branche
8989
- task: GithubRelease@1
9090
condition: >-
9191
and(
9292
succeeded(),
9393
eq(variables['System.PullRequest.PullRequestId'], ''),
94-
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
95-
ne(variables['StartReleaseCandidate'], true )
96-
)
97-
displayName: Create/Update GitHub PREVIEW release
98-
inputs:
99-
gitHubConnection: 'github.com_nano-$(System.TeamProject)'
100-
tagSource: userSpecifiedTag
101-
tag: v$(MY_NUGET_VERSION)
102-
title: '$(nugetPackageName) Library v$(MY_NUGET_VERSION)'
103-
releaseNotesSource: inline
104-
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5Stack Fire](https://www.nuget.org/packages/nanoFramework.Fire/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
105-
assets: '$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
106-
assetUploadMode: replace
107-
isPreRelease: true
108-
addChangeLog: false
109-
110-
# create or update GitHub release ON tags from release or main branches
111-
- task: GithubRelease@1
112-
condition: >-
113-
and(
114-
succeeded(),
115-
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
94+
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
11695
not(contains(variables['Build.SourceBranch'], 'preview')),
11796
ne(variables['StartReleaseCandidate'], true)
11897
)
119-
displayName: Create/Update GitHub stable release
98+
displayName: Create GitHub stable release
12099
inputs:
121100
action: edit
122101
gitHubConnection: 'github.com_nano-$(System.TeamProject)'
123102
tagSource: userSpecifiedTag
124103
tag: v$(MY_NUGET_VERSION)
125-
title: '$(nugetPackageName) Library v$(MY_NUGET_VERSION)'
104+
title: '$(nugetPackageName) v$(MY_NUGET_VERSION)'
126105
releaseNotesSource: inline
127106
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5Stack Fire](https://www.nuget.org/packages/nanoFramework.Fire/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
128107
assets: '$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
129-
assetUploadMode: replace
130108
isPreRelease: false
131109
addChangeLog: false
132110

0 commit comments

Comments
 (0)