Skip to content

Commit

Permalink
using appveyor build version and added github deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
activescott committed Nov 24, 2018
1 parent 96bf0d8 commit a6cd97b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@
# build configuration #
#---------------------------------#
build_script:
- cmd: msbuild .\src\.build\lessmsi.msbuild /p:TheVersion=0.0.0.0 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild .\src\.build\lessmsi.msbuild /p:TheVersion=%APPVEYOR_BUILD_VERSION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

#---------------------------------#
# tests configuration #
#---------------------------------#

test:
assemblies:
- .\src\.deploy\LessMsi.Tests.dll
- .\src\.deploy\LessMsi.Tests.dll

artifacts:
- path: 'src\.deploy\chocolateypackage\*.nupkg'
- path: 'src\.deploy\*.zip'

deploy:
- provider: GitHub # See https://www.appveyor.com/docs/deployment/github/
release: v$(APPVEYOR_BUILD_VERSION)
description: 'Appveyor deployed v$(APPVEYOR_BUILD_VERSION)'
auth_token:
secure: oWfqfhnk8xvX/xrkBmz3jue7DCFM9VzP9MHzvX7T3qBzEIrAuDaue6bKTsVekpNs # encrypted token from https://github.com/settings/tokens
artifact: /(.*\.nupkg)|(.*\.zip)/ # upload NuGet & zip files to release assets
draft: false
prerelease: false
on:
branch: master # only deploy on master
appveyor_repo_tag: true # only deploy when there is a tag pushed
appveyor_repo_tag_name: publish # only deploy when tag == "publish"

0 comments on commit a6cd97b

Please sign in to comment.