diff --git a/appveyor.yml b/appveyor.yml index 4525405..85c8ce0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 2.0.{build} +version: 2.1.{build} skip_tags: true image: Visual Studio 2019 environment: @@ -40,13 +40,14 @@ artifacts: - path: 'SyncChanges.Service\**\*.*nupkg' - path: SyncChanges.Console.%APPVEYOR_BUILD_VERSION%.zip - path: SyncChanges.Service.%APPVEYOR_BUILD_VERSION%.zip -on_success: - - ps: | - if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { - git config --global credential.helper store - Add-Content -Path "$HOME\.git-credentials" -Value "https://$($env:access_token):x-oauth-basic@github.com`n" -NoNewline - git config --global user.email "michael@ganss.org" - git config --global user.name "Michael Ganss" - git tag v$env:APPVEYOR_BUILD_VERSION - git push origin --tags --porcelain - } +deploy: + - provider: GitHub + tag: v$(APPVEYOR_BUILD_VERSION) + release: $(APPVEYOR_BUILD_VERSION) + description: '$(APPVEYOR_REPO_COMMIT_MESSAGE)' + auth_token: + secure: Eq6BjtZ80BXKLwFMg76IjuQAvbLjbojIF/X/ARouGVhxPneJtgDfCXMPNgJ7KBKq + artifact: /SyncChanges\..*\.zip/ + draft: true + on: + branch: master