Skip to content

Commit

Permalink
Fixed an issue with creating the release
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Oct 28, 2015
1 parent 1f864bb commit 68f48d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Libraries/Create-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ $apiConfig = [xml](Get-Content $webConfig)
$apiConfig.SelectSingleNode('//appSettings/add[@key="BaseURL"]/@value').'#text' = 'http://localhost:50000/#'
$apiConfig.SelectSingleNode('//appSettings/add[@key="EnableDailySummary"]/@value').'#text' = 'true'
$apiConfig.SelectSingleNode('//system.web/compilation/@debug').'#text' = 'false'
$customErrors = $apiConfig.CreateElement("customErrors")
$customErrors.SetAttribute('mode','RemoteOnly')
$apiConfig.SelectSingleNode('//configuration/system.web').AppendChild($customErrors)
$apiConfig.SelectSingleNode('//system.web/customErrors/@mode').'#text' = 'RemoteOnly'

# Copy settings from app web.config
$appConfig = [xml](Get-Content "$releaseArtifactsDir\app\web.config")
Expand All @@ -71,4 +69,6 @@ If (Test-Path -Path "$releaseDir\Exceptionless.$($env:APPVEYOR_BUILD_VERSION).zi
}

Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::CreateFromDirectory($releaseTempDir, "$releaseDir\Exceptionless.$($env:APPVEYOR_BUILD_VERSION).zip")
[io.compression.zipfile]::CreateFromDirectory($releaseTempDir, "$releaseDir\Exceptionless.$($env:APPVEYOR_BUILD_VERSION).zip")

Get-ChildItem .\release\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName ReleaseArtifacts }
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ artifacts:

before_deploy:
- ps: .\Libraries\Create-Release.ps1
- ps: Get-ChildItem .\release\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName ReleaseArtifacts }


deploy:
provider: GitHub
auth_token:
Expand Down

0 comments on commit 68f48d2

Please sign in to comment.