From f994d6e2dfa0ccc5ebf76abc7e40267a6e99139d Mon Sep 17 00:00:00 2001 From: Rendo Date: Sat, 19 Jul 2025 23:10:27 +0500 Subject: [PATCH] Nightly deploy --- export/deploy-nightly.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 export/deploy-nightly.ps1 diff --git a/export/deploy-nightly.ps1 b/export/deploy-nightly.ps1 new file mode 100644 index 0000000..cf70b89 --- /dev/null +++ b/export/deploy-nightly.ps1 @@ -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 \ No newline at end of file