Skip to content

Commit 41d373b

Browse files
authored
Update CI pipeline (#4)
1 parent 894a9f6 commit 41d373b

2 files changed

Lines changed: 43 additions & 7 deletions

File tree

.config/dotnet-tools.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "1.1.0",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
},
11+
"coveralls.net": {
12+
"version": "3.0.0",
13+
"commands": [
14+
"csmacnz.Coveralls"
15+
]
16+
}
17+
}
18+
}

appveyor.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ environment:
77
secure: qgQXzXhFARJ2oI6nhEQFri1M59G9KYzmEzJ2hQaOaa3ssTMLuYlXDAAnkdg5n/GZ
88
MYGET_TOKEN:
99
secure: yP12k1vrHJyValU1UWnW3NySjKfXlRomR8p4qqmYs26FDztsGMlCQeT5jdCVHlz6
10+
CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK: "true"
1011

1112
cache:
1213
- '%LocalAppData%\NuGet\v3-cache'
@@ -17,14 +18,13 @@ nuget:
1718
disable_publish_on_pr: true
1819

1920
install:
20-
- cmd: dotnet tool install -g Cake.Tool --version 0.34.1
21-
- cmd: dotnet tool install coveralls.net --tool-path tools
21+
- cmd: dotnet tool restore
2222

2323
build_script:
2424
- cmd: dotnet cake --target=Full
2525

2626
after_build:
27-
- ps: if ($env:COVERALLS_REPO_TOKEN -ne $null) { .\tools\csmacnz.coveralls.exe --reportgenerator -i .\outputs\tests\report --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID }
27+
- ps: if ($env:COVERALLS_REPO_TOKEN -ne $null) { dotnet csmacnz.Coveralls --reportgenerator -i .\outputs\tests\report --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID }
2828

2929
test: off
3030

@@ -38,13 +38,31 @@ artifacts:
3838
type: zip
3939

4040
deploy:
41+
- provider: Environment
42+
name: NuGet
43+
on:
44+
branch:
45+
- master
46+
- main
47+
appveyor_repo_tag: true
48+
- provider: Environment
49+
name: GitHub Packages - Kralizek
50+
on:
51+
branch:
52+
- master
53+
- main
54+
appveyor_repo_tag: true
4155
- provider: NuGet
4256
server: https://www.myget.org/F/kralizek/api/v2/package
4357
api_key:
4458
secure: SxuPZ1GdSw4IgdN1KHN9Ky36oUY5ZRT0ZZXd1BdDr+GgktRazqBz6dLcjA56++X/
4559
artifact: packages
46-
- provider: Environment
47-
name: NuGet
60+
- provider: GitHub
4861
on:
49-
branch: master
50-
appveyor_repo_tag: true
62+
branch:
63+
- master
64+
- main
65+
appveyor_repo_tag: true
66+
auth_token:
67+
secure: Qv4tMB9BvNni2+v69vK38jQq2ga1+GiI/YqCWkiA1fZN72v2NtaZo6UpwmXQNkop
68+
artifact: /.*.nupkg/

0 commit comments

Comments
 (0)