Skip to content

Commit

Permalink
Merge pull request #194 from JoeBiellik/master
Browse files Browse the repository at this point in the history
Latest AppVeyor
  • Loading branch information
SirSparkles authored Dec 22, 2017
2 parents 5ab7f1f + 40f25a8 commit 2db6d4a
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
image: Visual Studio 2017

configuration: Release
platform: Any CPU

clone_depth: 1

skip_non_tags: true
clone_depth: 1

cache:
- packages -> **\packages.config

init:
- ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
- ps: >-
$tag = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
Update-AppveyorBuild -Version "$($tag)"
$version = $tag -split '-'
$short = $version[0].TrimEnd(".0")
$friendly = $short
If ($version[1]) {
$end = (Get-Culture).TextInfo.ToTitleCase($version[1].Replace("rc", "RC"))
$friendly += " " + $end -replace "([a-z]+)(\d+)",'$1 $2'
}
$env:APPVEYOR_BUILD_VERSION_SHORT = $short
$env:APPVEYOR_BUILD_VERSION_FRIENDLY = $friendly
$env:APPVEYOR_BUILD_VERSION
$env:APPVEYOR_BUILD_VERSION_SHORT
$env:APPVEYOR_BUILD_VERSION_FRIENDLY
assembly_info:
patch: true
file: TVRename#\Properties\AssemblyInfo.cs
assembly_version: '$(appveyor_build_version)'
assembly_file_version: '$(appveyor_build_version)'
# assembly_version: '$(APPVEYOR_BUILD_VERSION_SHORT)'
# assembly_file_version: '$(APPVEYOR_BUILD_VERSION_FRIENDLY)'
assembly_informational_version: '2.1' # Used for settings path

test: off
Expand All @@ -42,10 +63,7 @@ artifacts:
deploy:
- provider: GitHub
auth_token:
secure: N9IXwzwtulNUU5FVDy1+z7ZKbYuSWhtrrTosnaoLApyLas6XEd1whQNZYnpYKBnJ

This comment has been minimized.

Copy link
@JoeBiellik

JoeBiellik Dec 24, 2017

Collaborator

This needs to be reverted

This comment has been minimized.

Copy link
@SirSparkles

SirSparkles Dec 24, 2017

Author Collaborator

Yeah - I did that on the next commit

description: 'TV Rename $(appveyor_build_version)'
secure: LXb1x464/z4u7tR3LQGsmluXZx+Q0XooJVLoFRCvtuOvg0x7dZ7RbKuZjTiZG6Eg
artifact: 'TVRename-$(appveyor_build_version)'
draft: true
# force_update: true
on:
appveyor_repo_tag: true

2 comments on commit 2db6d4a

@JoeBiellik
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarkSummerville I just wanted to say for future reference that it's probably best to not merge changes I make to any forked repos until I make a pull request. These quick debug commits where never meant to be merged in their current form, but I had to get them to a live repo to trigger the deployment build. It doesn't really matter they are merged but it could break things.

@SirSparkles
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoeBiellik apologies, I am still getting to grips with some of the GitHub etiquette. In my excitement at having a build process I just wanted the latest.

Please sign in to comment.