Skip to content

Commit

Permalink
Moved the 'before-deployment' to 'after-build' because it isn't runni…
Browse files Browse the repository at this point in the history
…ng on appveyor'
  • Loading branch information
camalot committed Apr 7, 2016
1 parent 0783ebc commit 0b420b4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .appveyor/appveyor.after-build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

## THIS IS HERE BECAUSE THE 'BEFORE-DEPLOYMENT' DOESNT WANT TO RUN
## AND IT IS PISSING ME OFF

$commitMessageRegex = "^\[deploy\:(pre-release|draft|release)\]$";


# Must come from master branch.
# Must not have a PULL Request Number
# Must match regex
if ( ($env:APPVEYOR_REPO_BRANCH -eq "master") -and ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match $commitMessageRegex) ) {
$env:CI_DEPLOY_NUGET = $true;
$env:CI_DEPLOY_GITHUB = $true;
$env:CI_DEPLOY_FTP = $false;
$env:CI_DEPLOY_WebHook = $true;
$env:CI_DEPLOY_WebDeploy = $true;
$env:CI_DEPLOY_CodePlex = $false;
$env:CI_DEPLOY_WEBAPI_RELEASE = $false;
$env:CI_DEPLOY_PUSHBULLET = $true;
$env:CI_DEPLOY = $true;
} else {
# Do not assign a release number or deploy
$env:CI_DEPLOY_NUGET = $true;
$env:CI_DEPLOY_GITHUB_PRE = $true;
$env:CI_DEPLOY_GITHUB = $false;
$env:CI_DEPLOY_FTP = $false;
$env:CI_DEPLOY_WebHook = $false;
$env:CI_DEPLOY_WebDeploy = $false;
$env:CI_DEPLOY_CodePlex = $false;
$env:CI_DEPLOY_WEBAPI_RELEASE = $false;
$env:CI_DEPLOY_PUSHBULLET = $false;
$env:CI_DEPLOY = $false;
}

0 comments on commit 0b420b4

Please sign in to comment.