From 8365b4efa6c8484dce895de2a702f5a342bf8565 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Fri, 9 Apr 2021 16:40:33 +0200 Subject: [PATCH] Create GitHub release through AppVeyor --- appveyor.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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