-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
46 lines (41 loc) · 1.41 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: 1.10.1.{build}
environment:
my_version: 1.10.1
my_secret:
secure: eXAIysIG8npt2tVMYQpGwTLj47CK9lUB/NyEfVGgc90=
skip_branch_with_pr: true
image: Visual Studio 2017
clone_folder: c:\projects\NLocalizer
platform: Any CPU
configuration: Release
install:
- nuget install secure-file -ExcludeVersion
before_build:
- cmd: nuget restore
- secure-file\tools\secure-file -decrypt "c:\projects\NLocalizer\NLocalizer\NLocalizer.snk.enc" -secret %my_secret%
after_build:
- cmd: 7z a NLocalizer-%my_version%.zip %APPVEYOR_BUILD_FOLDER%\NLocalizer\build\lib\*
- nuget pack "c:\projects\NLocalizer\NLocalizer\build\NLocalizer.nuspec"
artifacts:
- path: NLocalizer-%my_version%.zip
- path: NLocalizer.%my_version%.nupkg
deploy:
- provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
description: '// TODO: Write Release Notes'
artifact: NLocalizer-%my_version%.zip
auth_token:
secure: WHW27Nvc8zNhfyhxIYdl/NwbrkFzvSX0vE4/CS8iByPXM6rcztWhUrDXJ7eejLBY
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
- provider: NuGet
api_key:
secure: f061iyHEh8+Fz3+iV/c+3stBhQuyndcJMP719Eny9w6sbRfMgD1yJe+aVAYW1PJD
skip_symbols: false
artifact: NLocalizer.%my_version%.nupkg
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only