deploy script
This commit is contained in:
parent
d76d6cd82b
commit
39082a9b87
2 changed files with 15 additions and 1 deletions
14
export/deploy.ps1
Normal file
14
export/deploy.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/liberation-of-neighbourville: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