Selaa lähdekoodia

[Build] Set version directly in the repository so that it doesn't need to be managed on teamcity

Virgile Bello 5 vuotta sitten
vanhempi
sitoutus
a0ef2d1293
2 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 7 1
      README.md
  2. 5 1
      build/deploy.ps1

+ 7 - 1
README.md

@@ -7,4 +7,10 @@ Anyone is welcome to contribute! Before you start, please take the time to read
 
 
 You can find basic information about editing the documentation in [Getting Started](GETTINGSTARTED.md).
 You can find basic information about editing the documentation in [Getting Started](GETTINGSTARTED.md).
 
 
-Happy editing!
+Happy editing!
+
+# Manage multiple Stride versions
+
+Each Stride minor version (i.e. 4.0, 4.1, etc.) should have its own branch, named in the fashion `master-<version>`. The only exception is latest version, which should be `master`.
+
+Don't forget to change `$version` in [deploy.ps1](build/deploy.ps1) when branching before first deployment.

+ 5 - 1
build/deploy.ps1

@@ -1,4 +1,8 @@
-param ($version, $deploymentProfile, $deploymentPassword)
+param ($deploymentProfile, $deploymentPassword)
+
+# This is the version used in the https://doc.stride3d.net/<version> url
+# Please update this if branching for a new release!
+$version = "4.0"
 
 
 # Deploy doc on the target
 # Deploy doc on the target
 Write-Host Executing `'WAWSDeploy.exe ../stride_doc.zip $deploymentProfile /v /t $version /d /p XXXXXXXXXXXXX`'
 Write-Host Executing `'WAWSDeploy.exe ../stride_doc.zip $deploymentProfile /v /t $version /d /p XXXXXXXXXXXXX`'