Skip to content

Commit ec22970

Browse files
committed
Add Continous Deployment
1 parent d12ffd5 commit ec22970

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

BatchDI.AspNetCore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
55
</PropertyGroup>
66
<PropertyGroup>
7+
<Version />
78
<PackageId>AspNet.DependencyInjection.Batch</PackageId>
89
<Authors>Fahmi Akbar Wildana</Authors>
910
</PropertyGroup>

appveyor.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ init:
1313

1414
artifacts:
1515
- path: '**\*.nupkg'
16-
name: Library
16+
name: Package
1717
type: NuGetPackage
18-
19-
# package_version: $(appveyor_build_version)
18+
- path: bin/Release
19+
name: Release
20+
type: Zip
2021

2122
dotnet_csproj:
2223
patch: true
@@ -36,4 +37,20 @@ build_script:
3637
test_script:
3738
- cmd: cd Example
3839
- cmd: dotnet restore --verbosity m
39-
- cmd: dotnet run -- 5
40+
- cmd: dotnet run -- 5
41+
42+
deploy:
43+
- provider: NuGet
44+
artifact: Package
45+
api_key: $(NUGET_KEY)
46+
skip_symbols: false
47+
on:
48+
appveyor_repo_tag: true # deploy on tag push only
49+
- provider: GitHub
50+
artifact: Release
51+
auth_token: $(GITHUB_KEY)
52+
draft: true
53+
force_update: true
54+
on:
55+
branch: master # release from master branch only
56+
appveyor_repo_tag: true # deploy on tag push only

0 commit comments

Comments
 (0)