Skip to content

Commit

Permalink
Deploy to GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Apr 29, 2021
1 parent 0928b81 commit 43609ee
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0.{build}
version: 2.1.{build}
skip_tags: true
image: Visual Studio 2019
environment:
Expand Down Expand Up @@ -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):[email protected]`n" -NoNewline
git config --global user.email "[email protected]"
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

0 comments on commit 43609ee

Please sign in to comment.