-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
44 lines (43 loc) · 1.37 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
version: Build-{build}
skip_commits:
files:
- docs/*
- appveyor.yml
- readme.md
branches:
only:
- develop
- master
environment:
packageVersion: NotSet
packageName: autofac.typedfactories
assemblyInfoPath: C:\projects\autofac-typedfactories\src\Autofac.TypedFactories\Properties\AssemblyInfo.cs
repoNuGet: https://www.nuget.org/api/v2
install:
- git submodule update --init --recursive
before_build:
- nuget restore -verbosity detailed -source "https://www.nuget.org/api/v2" "./src/Autofac.TypedFactories.sln"
- ps: .\AssemblyInfoVersion\src\SetNextVersion.ps1 $env:assemblyInfoPath $env:packageName $env:APPVEYOR_REPO_BRANCH $env:repoNuGet
build:
verbosity: minimal
after_build:
- cmd: nuget pack %APPVEYOR_BUILD_FOLDER%\src\Autofac.TypedFactories\Autofac.TypedFactories.csproj
- cmd: nuget pack %APPVEYOR_BUILD_FOLDER%\src\Autofac.TypedFactories\Autofac.TypedFactories.csproj -symbols
artifacts:
- path: '**/Autofac.TypedFactories.*.nupkg'
name: NuGet_pkg
deploy:
- provider: NuGet
server: https://www.nuget.org/api/v2/package
artifact: NuGet_pkg
api_key:
secure: 4wZX/8xmg2FhrYoFP9NoSOKSGEURiqlH3li5G3aBkkbnILsSw23jrcnCfZMcyoRn
on:
branch: develop
- provider: NuGet
server: https://www.nuget.org/api/v2/package
artifact: NuGet_pkg
api_key:
secure: 4wZX/8xmg2FhrYoFP9NoSOKSGEURiqlH3li5G3aBkkbnILsSw23jrcnCfZMcyoRn
on:
branch: master