Skip to content

Commit bde6659

Browse files
committed
Update appveyor build scripts
1 parent 8dc9fdc commit bde6659

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

.appveyor.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ environment:
2525
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
2626
# Disable sending usage data to Microsoft
2727
DOTNET_CLI_TELEMETRY_OPTOUT: true
28-
gh_token:
28+
BUILD: $(APPVEYOR_BUILD_NUMBER)
29+
COVERITY_EMAIL:
30+
secure: xxx
31+
COVERITY_TOKEN:
32+
secure: xxx
33+
GITHUB_TOKEN:
2934
secure: tlnq8XIYBO8uf9X6Umt0ei09ldGB7E9hhxT8gLxsfm4fnt2ymz8M2uMVtA0jplPj
3035

3136
pull_requests:
@@ -91,6 +96,16 @@ artifacts:
9196
#---------------------------------#
9297

9398
deploy:
99+
- provider: GitHub
100+
auth_token: $(GITHUB_TOKEN)
101+
artifact: /.*\.nupkg/
102+
draft: true
103+
force_update: true
104+
prerelease: true
105+
description: "e"
106+
on:
107+
appveyor_repo_tag: false
108+
# Deploying to MyGet feed
94109
- provider: NuGet
95110
name: development
96111
server: https://www.myget.org/F/courio-dev/api/v2/package
@@ -100,6 +115,8 @@ deploy:
100115
on:
101116
# Only publish from the master branch
102117
branch: master
118+
119+
# Deploying to NuGet feed
103120
- provider: NuGet
104121
name: production
105122
api_key:
@@ -112,6 +129,31 @@ deploy:
112129
# git push origin --tags
113130
appveyor_repo_tag: true
114131

132+
# scripts to run before deployment
133+
before_deploy:
134+
135+
# scripts to run after deployment
136+
after_deploy:
137+
- ps: .\upload-test.ps1
138+
139+
# to run your custom scripts instead of provider deployments
140+
deploy_script:
141+
142+
# to disable deployment
143+
#deploy: off
144+
145+
#---------------------------------#
146+
# global handlers #
147+
#---------------------------------#
148+
149+
# on build failure
150+
on_failure:
151+
- do something
152+
153+
#---------------------------------#
154+
# notifications #
155+
#---------------------------------#
156+
115157
#---------------------------------#
116158
# cache configuration #
117159
#---------------------------------#

0 commit comments

Comments
 (0)