diff --git a/appveyor.yml b/appveyor.yml index 02c3786c..01fdf3df 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,14 +39,14 @@ artifacts: - path: 'xscgen\**\*.*nupkg' - path: 'xscgen-proj\**\*.*nupkg' - path: XmlSchemaClassGenerator.%APPVEYOR_BUILD_VERSION%.zip -on_success: - - ps: | - if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { - echo $PSVersionTable.PSVersion - 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: /XmlSchemaClassGenerator\..*\.zip/ + draft: true + on: + branch: master