Browse Source

Fix deploy script

Virgile Bello 5 years ago
parent
commit
f1a1104b25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/deploy.ps1

+ 2 - 2
build/deploy.ps1

@@ -7,13 +7,13 @@ Write-Host Executing `'WAWSDeploy.exe ../stride_doc.zip $deploymentProfile /v /t
 # Process versions.json
 # Process versions.json
 Write-Host Updating list of versions
 Write-Host Updating list of versions
 $response = Invoke-RestMethod -Uri http://xenko-doc.azurewebsites.net/versions.json
 $response = Invoke-RestMethod -Uri http://xenko-doc.azurewebsites.net/versions.json
-$response.versions = ($response.versions + $deploymentProfile) | select -Unique | Sort-Object -Property @{Expression={ new-object System.Version ($_) }; Descending = $True}
+$response.versions = ($response.versions + $version) | select -Unique | Sort-Object -Property @{Expression={ new-object System.Version ($_) }; Descending = $True}
 # Save file
 # Save file
 New-Item -Name "_siteroot" -ItemType "directory"
 New-Item -Name "_siteroot" -ItemType "directory"
 $response | ConvertTo-Json | Out-File -Encoding utf8 "_siteroot/versions.json"
 $response | ConvertTo-Json | Out-File -Encoding utf8 "_siteroot/versions.json"
 
 
 # Only update web.config if we are the latest version
 # Only update web.config if we are the latest version
-if ($response.versions[0] -eq $deploymentProfile)
+if ($response.versions[0] -eq $version)
 {
 {
 	(Get-Content -path "web.config" -Raw) -Replace '%deployment_version%', $version | Set-Content -Encoding utf8 -Path "_siteroot\web.config"
 	(Get-Content -path "web.config" -Raw) -Replace '%deployment_version%', $version | Set-Content -Encoding utf8 -Path "_siteroot\web.config"
 }
 }