Nightly deploy
This commit is contained in:
parent
efa44f00af
commit
f994d6e2df
1 changed files with 14 additions and 0 deletions
14
export/deploy-nightly.ps1
Normal file
14
export/deploy-nightly.ps1
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Step 1: Read the contents of "token.txt" into variable $tkn
|
||||||
|
$tkn = Get-Content -Path "token.txt" -Raw
|
||||||
|
|
||||||
|
# Step 2: Prompt the user for version input
|
||||||
|
$ver = Read-Host "Enter version"
|
||||||
|
|
||||||
|
# Step 3: Compress "build_folder" into a zip file named "lon$ver.zip"
|
||||||
|
$zipName = "lon$ver.zip"
|
||||||
|
Compress-Archive -Path "build_folder" -DestinationPath $zipName -Force
|
||||||
|
|
||||||
|
& ".\deploy_tools\butler.exe" push $zipName "lon-team/lon-test:windows" --userversion $ver
|
||||||
|
# Step 4: Execute deploy_tools\gjpush with required arguments
|
||||||
|
#& ".\deploy_tools\gjpush.exe" -t $tkn -g 1005720 -p 1012636 -r $ver $zipName
|
||||||
|
Remove-Item $zipName
|
||||||
Loading…
Add table
Add a link
Reference in a new issue