File tree 3 files changed +47
-21
lines changed
3 files changed +47
-21
lines changed Original file line number Diff line number Diff line change 1
- # configuration these branches
2
- branches :
3
- only :
4
- - master
5
- - /dev.*/
6
- - /release.*/
7
- - /v.*/
1
+ # configuration for all branches
8
2
9
3
image : Visual Studio 2017
10
4
@@ -81,6 +75,11 @@ before_deploy:
81
75
82
76
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.$env:GitVersion_NuGetVersionV2.nupkg
83
77
78
+ after_deploy :
79
+ # for this environment variable to work here it has to be set in AppVeyor UI
80
+ - nuget push source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
81
+ - nuget push source\Nuget.nanoFramework.Networking.Sntp.DELIVERABLES\bin\Release\nanoFramework.Networking.Sntp.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
82
+
84
83
# requires APPVEYOR_DISCORD_WEBHOOK_URL enviroment variable set with Discord webhook URL
85
84
on_failure :
86
85
- ps : |
118
117
draft : true
119
118
prerelease : false
120
119
force_update : true
121
-
120
+ on :
121
+ appveyor_repo_tag : false
122
122
-
123
123
branches :
124
124
only :
@@ -135,11 +135,8 @@ for:
135
135
draft : true
136
136
prerelease : true
137
137
force_update : true
138
-
139
- after_deploy :
140
- # for this environment variable to work here it has to be set in AppVeyor UI
141
- - nuget push source\Nuget.nanoFramework.Networking.Sntp\bin\Release\nanoFramework.Networking.Sntp.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
142
- - nuget push source\Nuget.nanoFramework.Networking.Sntp.DELIVERABLES\bin\Release\nanoFramework.Networking.Sntp.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
138
+ on :
139
+ appveyor_repo_tag : false
143
140
144
141
-
145
142
branches :
162
159
draft : true
163
160
prerelease : true
164
161
force_update : true
162
+ on :
163
+ appveyor_repo_tag : false
Original file line number Diff line number Diff line change 1
- # only need to commit assembly info changes when build is NOT for a pull-request
2
- if ($env: appveyor_pull_request_number )
1
+ # Copyright (c) 2018 The nanoFramework project contributors
2
+ # See LICENSE file in the project root for full license information.
3
+
4
+ # skip updating assembly info changes if build is a pull-request or not a tag (master OR release)
5
+ if ($env: appveyor_pull_request_number -or
6
+ ($env: APPVEYOR_REPO_BRANCH -eq " master" -and $env: APPVEYOR_REPO_TAG -eq ' true' ) -or
7
+ ($env: APPVEYOR_REPO_BRANCH -match " ^release*" -and $env: APPVEYOR_REPO_TAG -eq ' true' ) -or
8
+ $env: APPVEYOR_REPO_TAG -eq " true" )
3
9
{
4
- ' Skip committing assembly info changes as this is a PR build ...' | Write-Host - ForegroundColor White
10
+ ' Skip committing assembly info changes...' | Write-Host - ForegroundColor White
5
11
}
6
12
else
7
13
{
12
18
13
19
' Updated assembly info...' | Write-Host - ForegroundColor White - NoNewline
14
20
' OK' | Write-Host - ForegroundColor Green
21
+ }
22
+
23
+ # update assembly info in nf-interpreter if we are in development branch or if this is tag (master OR release)
24
+ if ($env: APPVEYOR_REPO_BRANCH -match " ^dev*" -or $env: APPVEYOR_REPO_TAG -eq " true" )
25
+ {
26
+ ' Updating assembly version in nf-interpreter...' | Write-Host - ForegroundColor White - NoNewline
15
27
16
28
# clone nf-interpreter repo (only a shallow clone with last commit)
17
29
git clone https:// github.com / nanoframework/ nf- interpreter - b develop -- depth 1 - q
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2018 The nanoFramework project contributors
2
+ # See LICENSE file in the project root for full license information.
3
+
1
4
# generate change log when build is NOT for a pull-request
2
- if ($env: appveyor_pull_request_number )
5
+ # generate change log when build is NOT a pull-request or not a tag (master OR release)
6
+ if ($env: appveyor_pull_request_number -or
7
+ ($env: APPVEYOR_REPO_BRANCH -eq " master" -and $env: APPVEYOR_REPO_TAG -eq ' true' ) -or
8
+ ($env: APPVEYOR_REPO_BRANCH -match " ^release*" -and $env: APPVEYOR_REPO_TAG -eq ' true' ) -or
9
+ $env: APPVEYOR_REPO_TAG -eq " true" )
3
10
{
4
- ' Skip change log processing as this is a PR build ...' | Write-Host - ForegroundColor White
11
+ ' Skip change log processing...' | Write-Host - ForegroundColor White
5
12
}
6
13
else
7
14
{
8
15
# need this to keep ruby happy
9
16
md c:\tmp
10
17
11
- # generate change log
12
- # version includes commits
13
- bundle exec github_changelog_generator -- token $env: GitHubToken
18
+ if ($env: APPVEYOR_REPO_BRANCH -eq " master" -or $env: APPVEYOR_REPO_BRANCH -match " ^release*" )
19
+ {
20
+ # generate change log including future version
21
+ bundle exec github_changelog_generator -- token $env: GitHubToken -- future- release " v$env: GitVersion_MajorMinorPatch "
22
+ }
23
+ else
24
+ {
25
+ # generate change log
26
+ # version includes commits
27
+ bundle exec github_changelog_generator -- token $env: GitHubToken
28
+ }
14
29
15
30
# updated changelog and the updated assembly info files
16
31
git add CHANGELOG.md
You can’t perform that action at this time.
0 commit comments